@exodus/ethereum-api 8.24.1 → 8.24.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
+ ## [8.24.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.24.1...@exodus/ethereum-api@8.24.2) (2024-12-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: unify watch tx exception handling (#4744)
13
+
14
+
15
+
6
16
  ## [8.24.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.24.0...@exodus/ethereum-api@8.24.1) (2024-12-19)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.24.1",
3
+ "version": "8.24.2",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "9f590f5439d73cba02054d608fb3d5c62fbdcf34"
67
+ "gitHead": "0ff44cf074103d3aee53b875d7026fae26bde5fc"
68
68
  }
package/src/watch-tx.js CHANGED
@@ -28,5 +28,9 @@ export const createWatchTx =
28
28
  hasTimedOut = Date.now() - start > watchTxTimeout
29
29
  }
30
30
 
31
- return { txId, confirmed: txConfirmed, hasTimedOut }
31
+ if (!txConfirmed) {
32
+ throw new Error("The transaction wasn't confirmed in time.")
33
+ }
34
+
35
+ return { txId }
32
36
  }