We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d4a4a commit 61a5a5cCopy full SHA for 61a5a5c
target_chains/stylus/contracts/pyth-receiver/src/lib.rs
@@ -644,6 +644,8 @@ impl PythReceiver {
644
) -> Result<(), PythReceiverError> {
645
let wormhole: IWormholeContract = IWormholeContract::new(address);
646
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
649
wormhole
650
.parse_and_verify_vm(config, data.clone())
651
.map_err(|_| PythReceiverError::InvalidVaa)?;
0 commit comments