Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Nov 10, 2023
1 parent 418d664 commit 02810eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions staking/programs/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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 =
Expand Down
3 changes: 1 addition & 2 deletions staking/programs/staking/src/state/stake_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ impl StakeAccountMetadataV2 {
authority_bump: u8,
voter_bump: u8,
owner: &Pubkey,
transfer_epoch: Option<u64>,
) {
self.metadata_bump = metadata_bump;
self.custody_bump = custody_bump;
self.authority_bump = authority_bump;
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;
}

Expand Down

0 comments on commit 02810eb

Please sign in to comment.