Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/actions/placeBid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const placeBid = async ({
closeTokenAccountTx,
} = await createWrappedAccountTxs(connection, bidder, amount.toNumber() + accountRentExempt * 2);
txBatch.addTransaction(createTokenAccountTx);
txBatch.addAfterTransaction(closeTokenAccountTx);
txBatch.addSigner(payingAccount);
////

Expand All @@ -123,6 +122,9 @@ export const placeBid = async ({
txBatch.addAfterTransaction(createRevokeTx);
txBatch.addSigner(transferAuthority);
////

// token account must be closed after the revoke instruction
txBatch.addAfterTransaction(closeTokenAccountTx);

// create place bid transaction
const placeBidTransaction = new PlaceBid(
Expand Down