@exodus/ethereum-api 8.22.2 → 8.22.3

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.22.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.22.2...@exodus/ethereum-api@8.22.3) (2024-12-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: send evm compatibility (#4661)
13
+
14
+
15
+
6
16
  ## [8.22.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.22.1...@exodus/ethereum-api@8.22.2) (2024-12-04)
7
17
 
8
18
  **Note:** Version bump only for package @exodus/ethereum-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.22.2",
3
+ "version": "8.22.3",
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": "94b6b798534f6b0587f6940248ab612513bfc34f"
67
+ "gitHead": "baff21e8431ee823250984b91dd5c3f4bb51ba32"
68
68
  }
@@ -12,26 +12,27 @@ import { resolveNonce } from './nonce-utils.js'
12
12
  const txSendFactory = ({ assetClientInterface, createUnsignedTx }) => {
13
13
  assert(assetClientInterface, 'assetClientInterface is required')
14
14
  assert(createUnsignedTx, 'createUnsignedTx is required')
15
- return async ({
16
- nft,
17
- asset,
18
- walletAccount,
19
- amount,
20
- address,
21
- feeAmount,
22
- shouldLog = true,
23
- keepTxInput,
24
- txInput,
25
- nonce: providedNonce,
26
- bumpTxId,
27
- customFee,
28
- isSendAll,
29
- isExchange,
30
- feeOpts: feeOpts_ = {},
31
- }) => {
15
+ return async ({ asset, walletAccount, address, amount, options = {} }) => {
16
+ const {
17
+ nft,
18
+ isExchange,
19
+ bumpTxId,
20
+ nonce: providedNonce,
21
+ customFee,
22
+ keepTxInput,
23
+ isSendAll,
24
+ } = options
25
+ let { txInput, feeAmount } = options // avoid let!
26
+
27
+ const feeOpts = {
28
+ gasPrice: options.gasPrice,
29
+ tipGasPrice: options.tipGasPrice,
30
+ gasLimit: options.gasLimit,
31
+ }
32
+
32
33
  const assetName = asset.name
33
34
  const baseAsset = asset.baseAsset
34
- const feeOpts = { ...feeOpts_ }
35
+
35
36
  const assets = await assetClientInterface.getAssetsForNetwork({ baseAssetName: baseAsset.name })
36
37
 
37
38
  // Using a default zero value to not break code relying on the `tx.feeAmount` property.