pyth2wormhole: Fix attestation validation bug

commit-id:567942d7
This commit is contained in:
Stan Drozd 2022-02-28 17:12:39 +01:00 committed by Stanisław Drozd
parent baec96654e
commit 972939ee31
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ pub fn attest(ctx: &ExecutionContext, accs: &mut Attest, data: AttestData) -> So
"Wormhole program account mismatch (expected {:?}, got {:?})",
accs.config.wh_prog, accs.wh_prog.key
));
return Err(ProgramError::InvalidAccountData.into());
}
// Make the specified prices iterable