@haven-fi/solauto-sdk 1.0.248 → 1.0.249

Sign up to get free protection for your applications and to get access to all the features.
@@ -258,9 +258,9 @@ class TransactionsManager {
258
258
  ? count + 1
259
259
  : count;
260
260
  }, 0);
261
- isolatedLutTx = newAccountsUsage > 1;
261
+ isolatedLutTx = Boolean(newAccountsUsage);
262
262
  }
263
- if (updateLookupTable && isolatedLutTx) {
263
+ if (updateLookupTable && updateLookupTable?.new) {
264
264
  await this.updateLut(updateLookupTable.tx);
265
265
  }
266
266
  this.lookupTables.defaultLuts = client.defaultLookupTables();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.248",
3
+ "version": "1.0.249",
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",
@@ -381,9 +381,9 @@ export class TransactionsManager {
381
381
  ? count + 1
382
382
  : count;
383
383
  }, 0);
384
- isolatedLutTx = newAccountsUsage > 1;
384
+ isolatedLutTx = Boolean(newAccountsUsage);
385
385
  }
386
- if (updateLookupTable && isolatedLutTx) {
386
+ if (updateLookupTable && updateLookupTable?.new) {
387
387
  await this.updateLut(updateLookupTable.tx);
388
388
  }
389
389
  this.lookupTables.defaultLuts = client.defaultLookupTables();