This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -447,23 +447,20 @@ fn command_vsa_remove(
447
447
if let Some ( stake_keypair) = stake_keypair. as_ref ( ) {
448
448
signers. push ( stake_keypair) ;
449
449
}
450
+ instructions. push (
451
+ // Create new validator stake account address
452
+ spl_stake_pool:: instruction:: remove_validator_from_pool_with_vote (
453
+ & spl_stake_pool:: id ( ) ,
454
+ & stake_pool,
455
+ stake_pool_address,
456
+ vote_account,
457
+ new_authority,
458
+ validator_stake_info. transient_seed_suffix_start ,
459
+ & stake_receiver,
460
+ ) ,
461
+ ) ;
450
462
unique_signers ! ( signers) ;
451
- let transaction = checked_transaction_with_signers (
452
- config,
453
- & [
454
- // Create new validator stake account address
455
- spl_stake_pool:: instruction:: remove_validator_from_pool_with_vote (
456
- & spl_stake_pool:: id ( ) ,
457
- & stake_pool,
458
- stake_pool_address,
459
- vote_account,
460
- new_authority,
461
- validator_stake_info. transient_seed_suffix_start ,
462
- & stake_receiver,
463
- ) ,
464
- ] ,
465
- & signers,
466
- ) ?;
463
+ let transaction = checked_transaction_with_signers ( config, & instructions, & signers) ?;
467
464
send_transaction ( config, transaction) ?;
468
465
Ok ( ( ) )
469
466
}
You can’t perform that action at this time.
0 commit comments