@exodus/web3-ethereum-utils 3.29.0 → 3.29.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.
- package/lib/transactions.d.ts +3 -3
- package/lib/transactions.js +3 -4
- package/package.json +2 -2
package/lib/transactions.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function getDisplayDetails(willApprove: ApprovalBalanceChange[]):
|
|
|
6
6
|
title: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const getTxFeeDetails: (transaction: EthTransaction) => {
|
|
9
|
-
gasLimit:
|
|
10
|
-
maxFeePerGas:
|
|
11
|
-
gasPrice:
|
|
9
|
+
gasLimit: string;
|
|
10
|
+
maxFeePerGas: string | undefined;
|
|
11
|
+
gasPrice: string;
|
|
12
12
|
};
|
package/lib/transactions.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FeeMarketEIP1559Transaction, Transaction as LegacyTransaction, } from '@exodus/ethereumjs-tx';
|
|
2
|
-
import { hexToBN } from '@exodus/web3-utils';
|
|
3
2
|
export function getTransactionId(serializedTransaction, isEIP1559Transaction = false) {
|
|
4
3
|
const Transaction = isEIP1559Transaction
|
|
5
4
|
? FeeMarketEIP1559Transaction
|
|
@@ -18,9 +17,9 @@ export function getDisplayDetails(willApprove) {
|
|
|
18
17
|
return { title };
|
|
19
18
|
}
|
|
20
19
|
export const getTxFeeDetails = (transaction) => {
|
|
21
|
-
const maxFeePerGas = transaction.maxFeePerGas
|
|
22
|
-
const gasPrice = transaction.gasPrice
|
|
23
|
-
const gasLimit =
|
|
20
|
+
const maxFeePerGas = transaction.maxFeePerGas;
|
|
21
|
+
const gasPrice = transaction.gasPrice;
|
|
22
|
+
const gasLimit = transaction.gas;
|
|
24
23
|
return {
|
|
25
24
|
gasLimit,
|
|
26
25
|
maxFeePerGas,
|
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.29.
|
|
4
|
+
"version": "3.29.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@exodus/web3-utils": "^1.45.0",
|
|
37
37
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c3ca91ffe762b459c3b42d9577eef90010cce56d"
|
|
40
40
|
}
|