From 19a09370b151feae2b61968963db564f99f2ad56 Mon Sep 17 00:00:00 2001 From: Filip Dunder Date: Mon, 4 Mar 2024 19:46:44 +0100 Subject: [PATCH] fix: sell function --- buy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buy.ts b/buy.ts index cb32464..894626e 100644 --- a/buy.ts +++ b/buy.ts @@ -324,8 +324,8 @@ async function sell(accountData: LiquidityStateV4, poolKeys: LiquidityPoolKeys): instructions: [ ComputeBudgetProgram.setComputeUnitLimit({ units: 400000 }), ComputeBudgetProgram.setComputeUnitPrice({ microLamports: 200000 }), - createCloseAccountInstruction(tokenAccount.address, wallet.publicKey, wallet.publicKey), ...innerTransaction.instructions, + createCloseAccountInstruction(tokenAccount.address, wallet.publicKey, wallet.publicKey), ], }).compileToV0Message(); const transaction = new VersionedTransaction(messageV0);