p2w-attest contract: disambiguate set-config types (#201)
* p2w-attest contract: disambiguate set-config types commit-id:999f3954 * p2w-attest set-config: also print the same mismatched value commit-id:732e2773
This commit is contained in:
parent
11e15c96b0
commit
35912e874e
|
@ -44,10 +44,11 @@ pub fn set_config(
|
|||
accs: &mut SetConfig,
|
||||
data: Pyth2WormholeConfig,
|
||||
) -> SoliResult<()> {
|
||||
if &accs.config.0.owner != accs.current_owner.info().key {
|
||||
let cfgStruct: &Pyth2WormholeConfig = &accs.config; // unpack Data via nested Deref impls
|
||||
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(),
|
||||
|
|
Loading…
Reference in New Issue