Skip to content

Commit 4754cb9

Browse files
kev1n-petersartursapek
authored andcommitted
Revert "make compute budget ixs first"
This reverts commit d376a79.
1 parent d9bf75c commit 4754cb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/src/contexts/solana/utils/sendAndConfirmPostVaa.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ export async function postVaaWithRetry(
4343
commitment,
4444
);
4545
for (const unsignedTransaction of unsignedTransactions) {
46-
unsignedTransaction.instructions.unshift(
47-
...(computeBudgetInstructions || []),
48-
);
46+
unsignedTransaction.add(...(computeBudgetInstructions || []));
4947
}
5048

5149
const postVaaTransaction = unsignedTransactions.pop()!;

0 commit comments

Comments
 (0)