@exodus/solana-api 3.18.1 → 3.18.2

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.18.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.18.1...@exodus/solana-api@3.18.2) (2025-05-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: throw only if unitsConsumed is not returned (#5561)
13
+
14
+
15
+
6
16
  ## [3.18.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.18.0...@exodus/solana-api@3.18.1) (2025-05-05)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.18.1",
3
+ "version": "3.18.2",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -47,7 +47,7 @@
47
47
  "@exodus/assets-testing": "^1.0.0",
48
48
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
49
49
  },
50
- "gitHead": "e277f0baf182bfc4af6a5f9e66c92ff88288a9ef",
50
+ "gitHead": "dcfc8ac65a86aad50baf92955a8cf18c0e641c4d",
51
51
  "bugs": {
52
52
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
53
53
  },
@@ -176,9 +176,9 @@ export const createUnsignedTxForSend = async ({
176
176
  })
177
177
  if (err) {
178
178
  // we use this method to compute unitsConsumed
179
- // we can throw error here and fallback to ~0.02 SOL or estimate fee based on the method
179
+ // we can throw error here and fallback to ~0.025 SOL or estimate fee based on the method
180
180
  console.log('error getting units consumed:', err)
181
- throw new Error(err)
181
+ if (!unitsConsumed) throw new Error(err)
182
182
  }
183
183
 
184
184
  return unitsConsumed + CU_FOR_COMPUTE_BUDGET_INSTRUCTIONS