@exodus/web3-ethereum 12.17.0 → 12.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.
@@ -9,7 +9,7 @@ async function getDefaultPurposeForLedger(asset) {
9
9
  return purposes[0];
10
10
  }
11
11
  const createEVMDepsFactory = ({ analytics, blockchainMetadata, }) => {
12
- return ({ assetName, origin, getAsset, getAddress: _getAddress, getSupportedChainIds, getPrivateKey, getFeeData: getFeeConfig, getCustomFeeRate, getActiveWalletAccount, simulateEthereumTransactions, getActiveWalletAccountData, transactionSigner, messageSigner: _messageSigner, getLedgerDevice, onEthWalletWatchAssetRequest: _onEthWalletWatchAssetRequest, }) => {
12
+ return ({ assetName, chainId: _chainId, origin, getAsset, getAddress: _getAddress, getSupportedChainIds, getPrivateKey, getFeeData: getFeeConfig, getCustomFeeRate, getActiveWalletAccount, simulateEthereumTransactions, getActiveWalletAccountData, transactionSigner, messageSigner: _messageSigner, getLedgerDevice, onEthWalletWatchAssetRequest: _onEthWalletWatchAssetRequest, }) => {
13
13
  const asset = getAsset(assetName);
14
14
  const server = getServer(asset);
15
15
  const forwardRequest = async ({ method, params }) => {
@@ -151,7 +151,7 @@ const createEVMDepsFactory = ({ analytics, blockchainMetadata, }) => {
151
151
  },
152
152
  };
153
153
  return {
154
- chainId: 'undefined',
154
+ chainId: _chainId || 'undefined',
155
155
  forwardRequest,
156
156
  sendRawTransaction,
157
157
  getAddress,
package/lib/types.d.ts CHANGED
@@ -27,6 +27,7 @@ export interface CreateEvmDepsFactoryParams {
27
27
  declare type SimulateTransactionsFn = (params: EthSimulateTransactionParams) => Promise<EthAggregatedTransactionSimulationResult>;
28
28
  export interface CreateEvmDepsParams {
29
29
  assetName: string;
30
+ chainId?: string;
30
31
  origin: string;
31
32
  getAddress: (assetName: string) => Promise<string>;
32
33
  getActiveWalletAccount: () => Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exodus/web3-ethereum",
3
3
  "description": "Apps connectivity library for EVM-compatible chains.",
4
- "version": "12.17.0",
4
+ "version": "12.18.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "module": "lib/index.js",
@@ -51,5 +51,5 @@
51
51
  "@exodus/web3-validation": "^1.38.0",
52
52
  "@wallet-standard/base": "^1.0.1"
53
53
  },
54
- "gitHead": "fd27d08c77e036bc7fc316bd2d9980747122b69a"
54
+ "gitHead": "9d986c3e15d2a445722ec8d62a40fc386eb672c7"
55
55
  }