@exodus/web3-ethereum-utils 3.21.0 → 3.22.1
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.
|
@@ -14,8 +14,8 @@ export const estimateFee = ({ asset, transaction, }) => {
|
|
|
14
14
|
if (transaction.maxFeePerGas) {
|
|
15
15
|
const maxFeePerGas = hexToBN(transaction.maxFeePerGas);
|
|
16
16
|
const maximumFee = gas.mul(maxFeePerGas);
|
|
17
|
-
return asset.currency.baseUnit(maximumFee);
|
|
17
|
+
return asset.currency.baseUnit(maximumFee.toString());
|
|
18
18
|
}
|
|
19
19
|
const gasPrice = hexToBN(transaction.gasPrice);
|
|
20
|
-
return asset.currency.baseUnit(gas.mul(gasPrice));
|
|
20
|
+
return asset.currency.baseUnit(gas.mul(gasPrice).toString());
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum-utils",
|
|
3
3
|
"description": "Web3 Ethereum utils.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.22.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"build": "yarn clean && tsc"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@exodus/web3-types": "
|
|
29
|
+
"@exodus/web3-types": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@exodus/ethereumjs-common": "^2.4.0-exodus.6",
|
|
33
33
|
"@exodus/ethereumjs-tx": "^3.3.0-exodus.6",
|
|
34
|
-
"@exodus/web3-utils": "^1.
|
|
34
|
+
"@exodus/web3-utils": "^1.42.0",
|
|
35
35
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "35ab04b61d447e2412d67cf7dd9ba9cff4c71d38"
|
|
38
38
|
}
|