@exodus/web3-ethereum-utils 2.0.0 → 2.0.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.
|
@@ -130,7 +130,7 @@ export const simulateTransaction = async ({ transaction, apiEndpoint, origin, si
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
const userExpectedChanges = Object.keys(expectedStateChanges).reduce((prev, address) => {
|
|
133
|
-
if (userAddress !== address) {
|
|
133
|
+
if (userAddress.toLowerCase() !== address.toLowerCase()) {
|
|
134
134
|
return prev;
|
|
135
135
|
}
|
|
136
136
|
const result = (Object.prototype.hasOwnProperty.call(expectedStateChanges, address) &&
|
package/lib/transactions.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare function getDisplayDetails(willApprove: ApprovalBalanceChange[]):
|
|
|
7
7
|
};
|
|
8
8
|
export declare const getTxFeeDetails: (transaction: EthTransaction) => {
|
|
9
9
|
gasLimit: import("bn.js");
|
|
10
|
-
maxFeePerGas: import("bn.js");
|
|
10
|
+
maxFeePerGas: "" | import("bn.js");
|
|
11
11
|
gasPrice: import("bn.js");
|
|
12
12
|
};
|
package/lib/transactions.js
CHANGED
|
@@ -18,7 +18,7 @@ export function getDisplayDetails(willApprove) {
|
|
|
18
18
|
return { title };
|
|
19
19
|
}
|
|
20
20
|
export const getTxFeeDetails = (transaction) => {
|
|
21
|
-
const maxFeePerGas = hexToBN(transaction.maxFeePerGas);
|
|
21
|
+
const maxFeePerGas = transaction.maxFeePerGas && hexToBN(transaction.maxFeePerGas);
|
|
22
22
|
const gasPrice = hexToBN(transaction.gasPrice);
|
|
23
23
|
const gasLimit = hexToBN(transaction.gas);
|
|
24
24
|
return {
|
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": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"@exodus/web3-utils": "^1.21.0",
|
|
35
35
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "97e2a3393ee466aaddbb6317267269ae93e5d6ac"
|
|
38
38
|
}
|