Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Oct 24, 2023
1 parent fae4055 commit dd22f6e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions staking/programs/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ pub mod staking {
let config = &ctx.accounts.config;
config.check_frozen()?;

let stake_account_metadata: &mut Box<
Account<'_, state::stake_account::StakeAccountMetadataV2>,
> = &mut ctx.accounts.stake_account_metadata;
let stake_account_metadata = &mut ctx.accounts.stake_account_metadata;
stake_account_metadata.initialize(
*ctx.bumps.get("stake_account_metadata").unwrap(),
*ctx.bumps.get("stake_account_custody").unwrap(),
Expand Down Expand Up @@ -574,9 +572,7 @@ pub mod staking {
let split_request = &ctx.accounts.source_stake_account_split_request;

// Initialize new accounts
let new_stake_account_metadata: &mut Box<
Account<'_, state::stake_account::StakeAccountMetadataV2>,
> = &mut ctx.accounts.new_stake_account_metadata;
let new_stake_account_metadata = &mut ctx.accounts.new_stake_account_metadata;
new_stake_account_metadata.initialize(
*ctx.bumps.get("new_stake_account_metadata").unwrap(),
*ctx.bumps.get("new_stake_account_custody").unwrap(),
Expand Down

0 comments on commit dd22f6e

Please sign in to comment.