Skip to content

Commit df26b9a

Browse files
committed
Remove unused `globalConfig
1 parent fa86af1 commit df26b9a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

solana/programs/staking/src/contexts/close_vesting_balance.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use crate::context::{CONFIG_SEED, VESTING_BALANCE_SEED, VESTING_CONFIG_SEED};
1+
use crate::context::{VESTING_BALANCE_SEED, VESTING_CONFIG_SEED};
22
use crate::error::VestingError;
3-
use crate::state::global_config::GlobalConfig;
43
use crate::state::{VestingBalance, VestingConfig};
54
use anchor_lang::prelude::*;
65
use anchor_spl::associated_token::AssociatedToken;
@@ -33,11 +32,6 @@ pub struct CloseVestingBalance<'info> {
3332
associated_token::token_program = token_program
3433
)]
3534
vester_ta: InterfaceAccount<'info, TokenAccount>,
36-
#[account(
37-
seeds = [CONFIG_SEED.as_bytes()],
38-
bump = global_config.bump,
39-
)]
40-
pub global_config: Box<Account<'info, GlobalConfig>>,
4135
associated_token_program: Program<'info, AssociatedToken>,
4236
token_program: Interface<'info, TokenInterface>,
4337
system_program: Program<'info, System>,

solana/tests/vesting.ts

-2
Original file line numberDiff line numberDiff line change
@@ -3579,7 +3579,6 @@ describe("vesting", () => {
35793579
rentPayer: newVester.publicKey,
35803580
vestingBalance: vestingBalanceWithoutAccount,
35813581
vesterTa: vesterTaWithoutAccount,
3582-
globalConfig: stakeConnection.configAddress,
35833582
})
35843583
.signers([newVester])
35853584
.rpc()
@@ -3778,7 +3777,6 @@ describe("vesting", () => {
37783777
rentPayer: vester3.publicKey,
37793778
vestingBalance: vesting3Balance,
37803779
vesterTa: vester3Ta,
3781-
globalConfig: vester3StakeConnection.configAddress,
37823780
})
37833781
.signers([vester3])
37843782
.rpc()

0 commit comments

Comments
 (0)