@haven-fi/solauto-sdk 1.0.97 → 1.0.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -130,7 +130,7 @@ class SolautoClient extends txHandler_1.TxHandler {
130
130
  const lookupTable = this.authorityLutAddress
131
131
  ? await this.connection.getAddressLookupTable(this.authorityLutAddress)
132
132
  : null;
133
- if (lookupTable === null) {
133
+ if (!lookupTable || lookupTable?.value === null) {
134
134
  this.authorityLutAddress = undefined;
135
135
  }
136
136
  return lookupTable?.value?.state.addresses ?? [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
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",
@@ -274,7 +274,7 @@ export abstract class SolautoClient extends TxHandler {
274
274
  const lookupTable = this.authorityLutAddress
275
275
  ? await this.connection.getAddressLookupTable(this.authorityLutAddress)
276
276
  : null;
277
- if (lookupTable === null) {
277
+ if (!lookupTable || lookupTable?.value === null) {
278
278
  this.authorityLutAddress = undefined;
279
279
  }
280
280
  return lookupTable?.value?.state.addresses ?? [];