@haven-fi/solauto-sdk 1.0.94 → 1.0.95

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,7 @@ class SolautoClient extends txHandler_1.TxHandler {
77
77
  }
78
78
  this.solautoFeesWallet = generalAccounts_1.SOLAUTO_FEES_WALLET;
79
79
  this.solautoFeesSupplyTa = (0, accountUtils_1.getTokenAccount)(this.solautoFeesWallet, this.supplyMint);
80
- this.authorityLutAddress = authorityReferralStateData?.lookupTable
80
+ this.authorityLutAddress = authorityReferralStateData?.lookupTable && !(0, umi_web3js_adapters_1.toWeb3JsPublicKey)(authorityReferralStateData.lookupTable).equals(web3_js_1.PublicKey.default)
81
81
  ? (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(authorityReferralStateData?.lookupTable)
82
82
  : undefined;
83
83
  this.upToDateLutAccounts = (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(this.signer.publicKey).equals(this.authority)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
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",
@@ -176,8 +176,8 @@ export abstract class SolautoClient extends TxHandler {
176
176
 
177
177
  const authorityReferralStateData = this.referralStateManager.referralStateData;
178
178
  const hasReferredBy =
179
- authorityReferralStateData &&
180
- authorityReferralStateData.referredByState !==
179
+ authorityReferralStateData &&
180
+ authorityReferralStateData.referredByState !==
181
181
  publicKey(PublicKey.default);
182
182
  const referredByAuthority =
183
183
  !hasReferredBy &&
@@ -204,7 +204,7 @@ export abstract class SolautoClient extends TxHandler {
204
204
  this.supplyMint
205
205
  );
206
206
 
207
- this.authorityLutAddress = authorityReferralStateData?.lookupTable
207
+ this.authorityLutAddress = authorityReferralStateData?.lookupTable && !toWeb3JsPublicKey(authorityReferralStateData.lookupTable).equals(PublicKey.default)
208
208
  ? toWeb3JsPublicKey(authorityReferralStateData?.lookupTable)
209
209
  : undefined;
210
210
  this.upToDateLutAccounts = toWeb3JsPublicKey(this.signer.publicKey).equals(