Просмотр исходного кода

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

commit-id:732e2773
Stan Drozd 3 лет назад
Родитель
Сommit
c3ce6c95cb
1 измененных файлов с 1 добавлено и 1 удалено
  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(),