@haven-fi/solauto-sdk 1.0.464 → 1.0.465

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.
@@ -85,7 +85,7 @@ async function getJupPriceData(mints, extraInfo) {
85
85
  if (!result ||
86
86
  result === null ||
87
87
  (typeof result === "object" &&
88
- Boolean(Object.values(data).filter((x) => x === null).length))) {
88
+ Boolean(Object.values(result).filter((x) => x === null).length))) {
89
89
  throw new Error("Failed to get token prices using Jupiter");
90
90
  }
91
91
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.464",
3
+ "version": "1.0.465",
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",
@@ -168,7 +168,7 @@ export async function getJupPriceData(mints: PublicKey[], extraInfo?: boolean) {
168
168
  !result ||
169
169
  result === null ||
170
170
  (typeof result === "object" &&
171
- Boolean(Object.values(data).filter((x) => x === null).length))
171
+ Boolean(Object.values(result).filter((x) => x === null).length))
172
172
  ) {
173
173
  throw new Error("Failed to get token prices using Jupiter");
174
174
  }