Skip to content

Commit d870b69

Browse files
committed
Fix closeStakeAccount
1 parent 387c3f1 commit d870b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/software/sava/solana/programs/clients/NativeProgramAccountClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ Instruction delegateStakeAccount(final PublicKey initializedStakeAccount,
483483

484484
default Instruction closeStakeAccount(final AccountInfo<StakeAccount> stakeAccountInfo) {
485485
final var stakeAccount = stakeAccountInfo.data();
486-
return withdrawStakeAccount(stakeAccount, stakeAccountInfo.lamports() + stakeAccount.stake());
486+
return withdrawStakeAccount(stakeAccount, stakeAccountInfo.lamports());
487487
}
488488

489489
default List<Instruction> closeStakeAccounts(final Collection<AccountInfo<StakeAccount>> stakeAccounts) {

0 commit comments

Comments
 (0)