@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.
|
@@ -20,7 +20,7 @@ export const EvmWalletProvidersProvider = observer(({ agreementsNote, children,
|
|
|
20
20
|
setConnectingProvider(providerConfig);
|
|
21
21
|
const prevConnector = walletService.connector;
|
|
22
22
|
// eslint-disable-next-line no-nested-ternary
|
|
23
|
-
const chainParams = network
|
|
23
|
+
const chainParams = network ?? (recentMeta?.chainId
|
|
24
24
|
? walletService.networks.find(_network => _network.chainId === recentMeta.chainId) ?? 1
|
|
25
25
|
: 1);
|
|
26
26
|
debug(`Try to activate ${providerConfig.info.name} connection with chain`, typeof chainParams === 'number' ? chainParams : chainParams.chainId);
|