File tree 2 files changed +1
-9
lines changed
programs/staking/src/contexts
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 1
- use crate :: context:: { CONFIG_SEED , VESTING_BALANCE_SEED , VESTING_CONFIG_SEED } ;
1
+ use crate :: context:: { VESTING_BALANCE_SEED , VESTING_CONFIG_SEED } ;
2
2
use crate :: error:: VestingError ;
3
- use crate :: state:: global_config:: GlobalConfig ;
4
3
use crate :: state:: { VestingBalance , VestingConfig } ;
5
4
use anchor_lang:: prelude:: * ;
6
5
use anchor_spl:: associated_token:: AssociatedToken ;
@@ -33,11 +32,6 @@ pub struct CloseVestingBalance<'info> {
33
32
associated_token:: token_program = token_program
34
33
) ]
35
34
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 > > ,
41
35
associated_token_program : Program < ' info , AssociatedToken > ,
42
36
token_program : Interface < ' info , TokenInterface > ,
43
37
system_program : Program < ' info , System > ,
Original file line number Diff line number Diff line change @@ -3579,7 +3579,6 @@ describe("vesting", () => {
3579
3579
rentPayer : newVester . publicKey ,
3580
3580
vestingBalance : vestingBalanceWithoutAccount ,
3581
3581
vesterTa : vesterTaWithoutAccount ,
3582
- globalConfig : stakeConnection . configAddress ,
3583
3582
} )
3584
3583
. signers ( [ newVester ] )
3585
3584
. rpc ( )
@@ -3778,7 +3777,6 @@ describe("vesting", () => {
3778
3777
rentPayer : vester3 . publicKey ,
3779
3778
vestingBalance : vesting3Balance ,
3780
3779
vesterTa : vester3Ta ,
3781
- globalConfig : vester3StakeConnection . configAddress ,
3782
3780
} )
3783
3781
. signers ( [ vester3 ] )
3784
3782
. rpc ( )
You can’t perform that action at this time.
0 commit comments