Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 30406ee

Browse files
stake-pool: cli fix remove-vsa bug (#2404)
* fix remove-vsa bug: join instructions * missed & * pls squash this merge
1 parent f54ddde commit 30406ee

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

stake-pool/cli/src/main.rs

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -447,23 +447,20 @@ fn command_vsa_remove(
447447
if let Some(stake_keypair) = stake_keypair.as_ref() {
448448
signers.push(stake_keypair);
449449
}
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+
);
450462
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)?;
467464
send_transaction(config, transaction)?;
468465
Ok(())
469466
}

0 commit comments

Comments
 (0)