Skip to content

Commit 61a5a5c

Browse files
committed
addressed nit
1 parent 28d4a4a commit 61a5a5c

File tree

1 file changed

+2
-0
lines changed
  • target_chains/stylus/contracts/pyth-receiver/src

1 file changed

+2
-0
lines changed

target_chains/stylus/contracts/pyth-receiver/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ impl PythReceiver {
644644
) -> Result<(), PythReceiverError> {
645645
let wormhole: IWormholeContract = IWormholeContract::new(address);
646646
let config = Call::new();
647+
648+
// Make sure the contract at the new Wormhole address is initialized and functional by testing it on the SetWormholeAddress instruction VAA
647649
wormhole
648650
.parse_and_verify_vm(config, data.clone())
649651
.map_err(|_| PythReceiverError::InvalidVaa)?;

0 commit comments

Comments
 (0)