From 02810eb2020135adca8300f1f62053022e5221c9 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Fri, 10 Nov 2023 11:50:11 +0000 Subject: [PATCH] Cleanup --- staking/programs/staking/src/lib.rs | 2 -- staking/programs/staking/src/state/stake_account.rs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/staking/programs/staking/src/lib.rs b/staking/programs/staking/src/lib.rs index e5f77803..bddf84e7 100644 --- a/staking/programs/staking/src/lib.rs +++ b/staking/programs/staking/src/lib.rs @@ -123,7 +123,6 @@ pub mod staking { *ctx.bumps.get("custody_authority").unwrap(), *ctx.bumps.get("voter_record").unwrap(), &owner, - None, ); stake_account_metadata.set_lock(lock); @@ -585,7 +584,6 @@ pub mod staking { *ctx.bumps.get("new_custody_authority").unwrap(), *ctx.bumps.get("new_voter_record").unwrap(), &split_request.recipient, - None, ); let new_stake_account_positions = diff --git a/staking/programs/staking/src/state/stake_account.rs b/staking/programs/staking/src/state/stake_account.rs index e1dacbc3..c0f840e7 100644 --- a/staking/programs/staking/src/state/stake_account.rs +++ b/staking/programs/staking/src/state/stake_account.rs @@ -49,7 +49,6 @@ impl StakeAccountMetadataV2 { authority_bump: u8, voter_bump: u8, owner: &Pubkey, - transfer_epoch: Option, ) { self.metadata_bump = metadata_bump; self.custody_bump = custody_bump; @@ -57,7 +56,7 @@ impl StakeAccountMetadataV2 { self.voter_bump = voter_bump; self.owner = *owner; self.next_index = 0; - self.transfer_epoch = transfer_epoch; + self.transfer_epoch = None; self.signed_agreement_hash = None; }