Skip to content

Commit

Permalink
Restore missing Wormhole account check
Browse files Browse the repository at this point in the history
Thanks Fynn for catching this. I think this was an oversight when I
removed the custody key and custody signer key (because these are not
used for wrapped tokens, only for native tokens) but I missed that this
check in between had to stay.
  • Loading branch information
ruuda committed Dec 24, 2021
1 parent 636d42b commit 5ff4988
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anker/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ impl Anker {
&wormhole_transfer_args.wrapped_meta_key,
accounts.wrapped_meta_key.key,
)?;
check_wormhole_account(
"authority signer key",
&wormhole_transfer_args.authority_signer_key,
accounts.authority_signer_key.key,
)?;
check_wormhole_account(
"bridge config",
&wormhole_transfer_args.bridge_config,
Expand Down

0 comments on commit 5ff4988

Please sign in to comment.