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

Commit ae574ae

Browse files
committed
bugfix, increase additional validator stake instruction was not added to array
1 parent 5b82c74 commit ae574ae

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

stake-pool/js/src/index.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -702,20 +702,22 @@ export async function increaseValidatorStake(
702702
stakePoolAddress,
703703
new BN(ephemeralStakeSeed),
704704
);
705-
StakePoolInstruction.increaseAdditionalValidatorStake({
706-
stakePool: stakePoolAddress,
707-
staker: stakePool.account.data.staker,
708-
validatorList: stakePool.account.data.validatorList,
709-
reserveStake: stakePool.account.data.reserveStake,
710-
transientStakeSeed: transientStakeSeed.toNumber(),
711-
withdrawAuthority,
712-
transientStake,
713-
validatorStake,
714-
validatorVote,
715-
lamports,
716-
ephemeralStake,
717-
ephemeralStakeSeed,
718-
});
705+
instructions.push(
706+
StakePoolInstruction.increaseAdditionalValidatorStake({
707+
stakePool: stakePoolAddress,
708+
staker: stakePool.account.data.staker,
709+
validatorList: stakePool.account.data.validatorList,
710+
reserveStake: stakePool.account.data.reserveStake,
711+
transientStakeSeed: transientStakeSeed.toNumber(),
712+
withdrawAuthority,
713+
transientStake,
714+
validatorStake,
715+
validatorVote,
716+
lamports,
717+
ephemeralStake,
718+
ephemeralStakeSeed,
719+
}),
720+
);
719721
} else {
720722
instructions.push(
721723
StakePoolInstruction.increaseValidatorStake({

0 commit comments

Comments
 (0)