@haven-fi/solauto-sdk 1.0.99 → 1.0.100

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,9 +47,9 @@ function getWSolUsage(client, solautoActions, initiatingDcaIn, cancellingDcaIn)
47
47
  }
48
48
  async function transactionChoresBefore(client, accountsGettingCreated, solautoActions, initiatingDcaIn) {
49
49
  let chores = (0, umi_1.transactionBuilder)();
50
- if (client.referralStateManager.referralState === null ||
50
+ if (client.referralStateManager.referralStateData === null ||
51
51
  (client.referredByState !== undefined &&
52
- client.referralStateManager.referralStateData.referredByState ===
52
+ client.referralStateManager.referralStateData?.referredByState ===
53
53
  (0, umi_1.publicKey)(web3_js_1.PublicKey.default)) ||
54
54
  (client.authorityLutAddress !== undefined &&
55
55
  client.referralStateManager.referralStateData.lookupTable ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
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",
@@ -110,9 +110,9 @@ async function transactionChoresBefore(
110
110
  let chores = transactionBuilder();
111
111
 
112
112
  if (
113
- client.referralStateManager.referralState === null ||
113
+ client.referralStateManager.referralStateData === null ||
114
114
  (client.referredByState !== undefined &&
115
- client.referralStateManager.referralStateData!.referredByState ===
115
+ client.referralStateManager.referralStateData?.referredByState ===
116
116
  publicKey(PublicKey.default)) ||
117
117
  (client.authorityLutAddress !== undefined &&
118
118
  client.referralStateManager.referralStateData!.lookupTable ==