@exodus/web3-ethereum-utils 3.16.0 → 3.18.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/signatures.js CHANGED
@@ -8,9 +8,7 @@ export function signTypedData(typedData, privateKey, version = SignTypedDataVers
8
8
  return ethSigUtilSignTypedData({ privateKey, data: typedData, version });
9
9
  }
10
10
  export function signTransaction(transactionParams, privateKey) {
11
- const { chainId: hexChainId, gas, ...rest } = transactionParams;
12
- const chainId = Number.parseInt(hexChainId, 16);
13
- const transactionData = { ...rest, gasLimit: gas };
11
+ const { chainId, ...transactionData } = transactionParams;
14
12
  const isEIP1559Enabled = !!transactionParams.maxFeePerGas;
15
13
  const transaction = isEIP1559Enabled
16
14
  ? FeeMarketEIP1559Transaction.fromTxData(transactionData, {
package/lib/types.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import type { AggregatedTransactionSimulationResult, BN, SimulateTransactionParams } from '@exodus/web3-types';
2
2
  export interface EthTransactionParams {
3
- chainId: string;
3
+ chainId: number;
4
4
  from: string;
5
5
  to?: string;
6
6
  gas?: string;
7
+ gasLimit?: string;
7
8
  gasPrice?: string;
8
9
  value?: string;
9
10
  data: string;
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.16.0",
4
+ "version": "3.18.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.43.0"
29
+ "@exodus/web3-types": "^1.45.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.37.0",
34
+ "@exodus/web3-utils": "^1.39.0",
35
35
  "@metamask/eth-sig-util": "^4.0.1"
36
36
  },
37
- "gitHead": "07e0d01d5ba64f77d04412d71195bf4eaf1c09cb"
37
+ "gitHead": "f7bc0aaecb18b659a85b6229b49a491886f0b570"
38
38
  }