Allow self registration on Solana
Change-Id: Ifc791036223e35af72a847f86ae1ddfd6b4d2173
This commit is contained in:
parent
0a93202f6e
commit
78547e23e6
|
@ -162,10 +162,6 @@ pub fn register_chain(
|
|||
accs.vaa.verify(ctx.program_id)?;
|
||||
accs.vaa.claim(ctx, accs.payer.key)?;
|
||||
|
||||
if accs.vaa.chain == CHAIN_ID_SOLANA {
|
||||
return Err(InvalidChain.into());
|
||||
}
|
||||
|
||||
// Create endpoint
|
||||
accs.endpoint
|
||||
.create(&((&*accs).into()), ctx, accs.payer.key, Exempt)?;
|
||||
|
|
Loading…
Reference in New Issue