@haven-fi/solauto-sdk 1.0.402 → 1.0.403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,7 +183,7 @@ async function sendJitoBundledTransactions(umi, connection, signer, txs, txType,
183
183
  (0, generalUtils_1.consoleLog)("Transaction sizes: ", txs.map((x) => x.getTransactionSize(umi)));
184
184
  txs[0] = txs[0].prepend(await getTipInstruction(signer, 150000));
185
185
  const feeEstimates = priorityFeeSetting !== types_1.PriorityFeeSetting.None
186
- ? await Promise.all(txs.map(async (x) => (await (0, solanaUtils_1.getComputeUnitPriceEstimate)(umi, x, priorityFeeSetting)) ??
186
+ ? await Promise.all(txs.map(async (x) => (await (0, solanaUtils_1.getComputeUnitPriceEstimate)(umi, x, priorityFeeSetting, true)) ??
187
187
  1000000))
188
188
  : undefined;
189
189
  const latestBlockhash = (await umi.rpc.getLatestBlockhash({ commitment: "confirmed" })).blockhash;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.402",
3
+ "version": "1.0.403",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -275,7 +275,7 @@ export async function sendJitoBundledTransactions(
275
275
  ? await Promise.all(
276
276
  txs.map(
277
277
  async (x) =>
278
- (await getComputeUnitPriceEstimate(umi, x, priorityFeeSetting)) ??
278
+ (await getComputeUnitPriceEstimate(umi, x, priorityFeeSetting, true)) ??
279
279
  1000000
280
280
  )
281
281
  )