@broxus/evm-connect 1.4.2 → 1.4.3

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.
@@ -47,7 +47,7 @@ exports.EvmWalletProvidersProvider = (0, mobx_react_lite_1.observer)(({ agreemen
47
47
  setConnectingProvider(providerConfig);
48
48
  const prevConnector = walletService.connector;
49
49
  // eslint-disable-next-line no-nested-ternary
50
- const chainParams = network?.chainId ? Number(network.chainId) : undefined ?? (recentMeta?.chainId
50
+ const chainParams = network ?? (recentMeta?.chainId
51
51
  ? walletService.networks.find(_network => _network.chainId === recentMeta.chainId) ?? 1
52
52
  : 1);
53
53
  (0, js_utils_1.debug)(`Try to activate ${providerConfig.info.name} connection with chain`, typeof chainParams === 'number' ? chainParams : chainParams.chainId);