Ver Fonte

p2w-attest set-config: also print the same mismatched value

commit-id:732e2773
Stan Drozd há 3 anos atrás
pai
commit
c3ce6c95cb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      solana/pyth2wormhole/program/src/set_config.rs

+ 1 - 1
solana/pyth2wormhole/program/src/set_config.rs

@@ -48,7 +48,7 @@ pub fn set_config(
     if &cfgStruct.owner != accs.current_owner.info().key {
         msg!(
             "Current owner account mismatch (expected {:?})",
-            accs.config.0.owner
+            cfgStruct.owner
         );
         return Err(SolitaireError::InvalidSigner(
             accs.current_owner.info().key.clone(),