diff --git a/sdk/src/contexts/solana/utils/computeBudget/index.ts b/sdk/src/contexts/solana/utils/computeBudget/index.ts index 6f52fbebd..a342ee3e6 100644 --- a/sdk/src/contexts/solana/utils/computeBudget/index.ts +++ b/sdk/src/contexts/solana/utils/computeBudget/index.ts @@ -76,7 +76,7 @@ async function determinePriorityFee( ): Promise { // https://twitter.com/0xMert_/status/1768669928825962706 - let fee = 1; // Set fee to 100,000 microlamport by default + let fee = 1; // Set fee to 1 microlamport by default try { const recentFeesResponse = await connection.getRecentPrioritizationFees({ diff --git a/sdk/src/contexts/solana/utils/sendAndConfirmPostVaa.ts b/sdk/src/contexts/solana/utils/sendAndConfirmPostVaa.ts index 2f177cf95..83520c8c4 100644 --- a/sdk/src/contexts/solana/utils/sendAndConfirmPostVaa.ts +++ b/sdk/src/contexts/solana/utils/sendAndConfirmPostVaa.ts @@ -41,12 +41,11 @@ export async function postVaaWithRetry( vaa, commitment, ); - for (const unsignedTransaction of unsignedTransactions) { - await addComputeBudget(connection, unsignedTransaction, []); - } - const postVaaTransaction = unsignedTransactions.pop()!; + for (const unsignedTransaction of unsignedTransactions) { + await addComputeBudget(connection, unsignedTransaction); + } const responses = await sendAndConfirmTransactionsWithRetry( connection, modifySignTransaction(signTransaction, ...signers), @@ -55,6 +54,7 @@ export async function postVaaWithRetry( maxRetries, ); //While the signature_set is used to create the final instruction, it doesn't need to sign it. + await addComputeBudget(connection, postVaaTransaction); responses.push( ...(await sendAndConfirmTransactionsWithRetry( connection, diff --git a/wormhole-connect/src/utils/wallet/index.ts b/wormhole-connect/src/utils/wallet/index.ts index efc89564d..9f635772f 100644 --- a/wormhole-connect/src/utils/wallet/index.ts +++ b/wormhole-connect/src/utils/wallet/index.ts @@ -166,7 +166,6 @@ export const postVaa = async ( pk.toString(), Buffer.from(signedVAA), MAX_VAA_UPLOAD_RETRIES_SOLANA, - undefined, ); };