Allow self registration on Solana

Change-Id: Ifc791036223e35af72a847f86ae1ddfd6b4d2173
This commit is contained in:
Hendrik Hofstadt 2021-11-15 19:16:04 +01:00
parent 0a93202f6e
commit 78547e23e6
1 changed files with 0 additions and 4 deletions

View File

@ -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)?;