@exodus/web3-ethereum-utils 3.5.0 → 3.7.0
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/lib/transactions.d.ts +2 -2
- package/lib/transactions.js +1 -1
- package/lib/types.d.ts +1 -1
- package/package.json +4 -4
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");
|
|
11
|
-
gasPrice: import("bn.js");
|
|
10
|
+
maxFeePerGas: "" | import("bn.js") | undefined;
|
|
11
|
+
gasPrice: "" | import("bn.js");
|
|
12
12
|
};
|
package/lib/transactions.js
CHANGED
|
@@ -19,7 +19,7 @@ export function getDisplayDetails(willApprove) {
|
|
|
19
19
|
}
|
|
20
20
|
export const getTxFeeDetails = (transaction) => {
|
|
21
21
|
const maxFeePerGas = transaction.maxFeePerGas && hexToBN(transaction.maxFeePerGas);
|
|
22
|
-
const gasPrice = hexToBN(transaction.gasPrice);
|
|
22
|
+
const gasPrice = transaction.gasPrice && hexToBN(transaction.gasPrice);
|
|
23
23
|
const gasLimit = hexToBN(transaction.gas);
|
|
24
24
|
return {
|
|
25
25
|
gasLimit,
|
package/lib/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface EthTransaction {
|
|
|
21
21
|
data: string;
|
|
22
22
|
nonce: string;
|
|
23
23
|
maxPriorityFeePerGas?: string;
|
|
24
|
-
maxFeePerGas
|
|
24
|
+
maxFeePerGas?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare type EthTransactionHash = string;
|
|
27
27
|
export declare type EthParentCapability = 'eth_accounts';
|
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.7.0",
|
|
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": "^1.
|
|
29
|
+
"@exodus/web3-types": "^1.36.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.28.0",
|
|
35
35
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ad7cf0bf015329652410c87a33327515fed9fe42"
|
|
38
38
|
}
|