Skip to content

Commit 14dc024

Browse files
committed
Revert "make compute budget ixs first"
This reverts commit d376a79.
1 parent d376a79 commit 14dc024

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)