@drift-labs/sdk-browser 2.111.0-beta.4 → 2.111.0-beta.5

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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.111.0-beta.4
1
+ 2.111.0-beta.5
@@ -279,6 +279,10 @@ class TxHandler {
279
279
  var _a;
280
280
  const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
281
281
  let { lookupTables } = props;
282
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
283
+ lookupTables = lookupTables
284
+ ? [...lookupTables, ...marketLookupTables]
285
+ : marketLookupTables;
282
286
  // # Collect and process Tx Params
283
287
  let baseTxParams = {
284
288
  computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
@@ -337,10 +341,6 @@ class TxHandler {
337
341
  }
338
342
  }
339
343
  else {
340
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
341
- lookupTables = lookupTables
342
- ? [...lookupTables, ...marketLookupTables]
343
- : marketLookupTables;
344
344
  return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
345
345
  }
346
346
  }
@@ -279,6 +279,10 @@ class TxHandler {
279
279
  var _a;
280
280
  const { txVersion, txParams, connection: _connection, preFlightCommitment: _preFlightCommitment, fetchAllMarketLookupTableAccounts, forceVersionedTransaction, instructions, } = props;
281
281
  let { lookupTables } = props;
282
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
283
+ lookupTables = lookupTables
284
+ ? [...lookupTables, ...marketLookupTables]
285
+ : marketLookupTables;
282
286
  // # Collect and process Tx Params
283
287
  let baseTxParams = {
284
288
  computeUnits: txParams === null || txParams === void 0 ? void 0 : txParams.computeUnits,
@@ -337,10 +341,6 @@ class TxHandler {
337
341
  }
338
342
  }
339
343
  else {
340
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
341
- lookupTables = lookupTables
342
- ? [...lookupTables, ...marketLookupTables]
343
- : marketLookupTables;
344
344
  return this.generateVersionedTransaction(recentBlockhash, allIx, lookupTables);
345
345
  }
346
346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk-browser",
3
- "version": "2.111.0-beta.4",
3
+ "version": "2.111.0-beta.5",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
@@ -482,6 +482,12 @@ export class TxHandler {
482
482
 
483
483
  let { lookupTables } = props;
484
484
 
485
+ const marketLookupTables = await fetchAllMarketLookupTableAccounts();
486
+
487
+ lookupTables = lookupTables
488
+ ? [...lookupTables, ...marketLookupTables]
489
+ : marketLookupTables;
490
+
485
491
  // # Collect and process Tx Params
486
492
  let baseTxParams: BaseTxParams = {
487
493
  computeUnits: txParams?.computeUnits,
@@ -561,11 +567,6 @@ export class TxHandler {
561
567
  return this.generateLegacyTransaction(allIx, recentBlockhash);
562
568
  }
563
569
  } else {
564
- const marketLookupTables = await fetchAllMarketLookupTableAccounts();
565
- lookupTables = lookupTables
566
- ? [...lookupTables, ...marketLookupTables]
567
- : marketLookupTables;
568
-
569
570
  return this.generateVersionedTransaction(
570
571
  recentBlockhash,
571
572
  allIx,