Selaa lähdekoodia

addressed nit

Ayush Suresh 4 kuukautta sitten
vanhempi
sitoutus
61a5a5ca8c
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      target_chains/stylus/contracts/pyth-receiver/src/lib.rs

+ 2 - 0
target_chains/stylus/contracts/pyth-receiver/src/lib.rs

@@ -644,6 +644,8 @@ impl PythReceiver {
     ) -> Result<(), PythReceiverError> {
         let wormhole: IWormholeContract = IWormholeContract::new(address);
         let config = Call::new();
+
+        // Make sure the contract at the new Wormhole address is initialized and functional by testing it on the SetWormholeAddress instruction VAA
         wormhole
             .parse_and_verify_vm(config, data.clone())
             .map_err(|_| PythReceiverError::InvalidVaa)?;