@haven-fi/solauto-sdk 1.0.486 → 1.0.487

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.
@@ -83,7 +83,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
83
83
  jupQuote: quoteResponse,
84
84
  priceImpactBps: finalPriceImpactBps,
85
85
  lookupTableAddresses: instructions.addressLookupTableAddresses,
86
- setupInstructions: (0, umi_1.transactionBuilder)().add(instructions.setupInstructions.map((ix) => (0, solanaUtils_1.getWrappedInstruction)(signer, createTransactionInstruction(ix)))),
86
+ setupInstructions: (0, umi_1.transactionBuilder)().add((instructions.setupInstructions ?? []).map((ix) => (0, solanaUtils_1.getWrappedInstruction)(signer, createTransactionInstruction(ix)))),
87
87
  tokenLedgerIx: (0, umi_1.transactionBuilder)().add(instructions.tokenLedgerInstruction !== undefined
88
88
  ? (0, solanaUtils_1.getWrappedInstruction)(signer, createTransactionInstruction(instructions.tokenLedgerInstruction))
89
89
  : (0, umi_1.transactionBuilder)()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.486",
3
+ "version": "1.0.487",
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",
@@ -152,7 +152,7 @@ export async function getJupSwapTransaction(
152
152
  priceImpactBps: finalPriceImpactBps,
153
153
  lookupTableAddresses: instructions.addressLookupTableAddresses,
154
154
  setupInstructions: transactionBuilder().add(
155
- instructions.setupInstructions.map((ix) =>
155
+ (instructions.setupInstructions ?? []).map((ix) =>
156
156
  getWrappedInstruction(signer, createTransactionInstruction(ix))
157
157
  )
158
158
  ),
@@ -72,7 +72,7 @@ describe("Solauto Marginfi tests", async () => {
72
72
  await client.initialize({
73
73
  signer,
74
74
  positionId,
75
- authority: new PublicKey("7yk7HcAJfwNao3NSbYiPNtJvCPTxsgkzuJmyMLyP297E"),
75
+ authority: new PublicKey("FKYQs7KgRvaKQHxXwb8HKfoBcFdSxLL3JvHWpPdVQ16v"),
76
76
  // new: true,
77
77
  // marginfiAccount: new PublicKey(
78
78
  // ""