Fix guardian set expiration

Change-Id: Ie92168305db2dcd69421f369078d118a011332e1
This commit is contained in:
Hendrik Hofstadt 2021-09-01 19:52:15 +02:00
parent 1a8bf4456e
commit 48e8ae1555
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ pub struct UpgradeGuardianSet<'b> {
pub vaa: ClaimableVAA<'b, GovernancePayloadGuardianSetChange>,
/// Old guardian set
pub guardian_set_old: GuardianSet<'b, { AccountState::Initialized }>,
pub guardian_set_old: Mut<GuardianSet<'b, { AccountState::Initialized }>>,
/// New guardian set
pub guardian_set_new: Mut<GuardianSet<'b, { AccountState::Uninitialized }>>,

View File

@ -291,7 +291,7 @@ pub fn upgrade_guardian_set(
AccountMeta::new(bridge, false),
AccountMeta::new_readonly(payload_message, false),
AccountMeta::new(claim, false),
AccountMeta::new_readonly(guardian_set_old, false),
AccountMeta::new(guardian_set_old, false),
AccountMeta::new(guardian_set_new, false),
AccountMeta::new_readonly(solana_program::system_program::id(), false),
],