diff --git a/packages/adapters/coinbase-adapter/src/coinbaseAdapter.ts b/packages/adapters/coinbase-adapter/src/coinbaseAdapter.ts index 6f2db1280..08f30740b 100644 --- a/packages/adapters/coinbase-adapter/src/coinbaseAdapter.ts +++ b/packages/adapters/coinbase-adapter/src/coinbaseAdapter.ts @@ -92,7 +92,7 @@ class CoinbaseAdapter extends BaseEvmAdapter { await this.coinbaseProvider.request({ method: "eth_requestAccounts" }); const { chainId } = this.coinbaseProvider; if (chainId !== (this.chainConfig as CustomChainConfig).chainId) { - if (!this.getChainConfig(this.chainConfig.chainId)) await this.addChain(this.chainConfig as CustomChainConfig); + await this.addChain(this.chainConfig as CustomChainConfig); await this.switchChain(this.chainConfig as CustomChainConfig, true); } this.status = ADAPTER_STATUS.CONNECTED; diff --git a/packages/adapters/metamask-adapter/src/metamaskAdapter.ts b/packages/adapters/metamask-adapter/src/metamaskAdapter.ts index 7233301d5..213845c92 100644 --- a/packages/adapters/metamask-adapter/src/metamaskAdapter.ts +++ b/packages/adapters/metamask-adapter/src/metamaskAdapter.ts @@ -82,7 +82,7 @@ class MetamaskAdapter extends BaseEvmAdapter { await this.metamaskProvider.request({ method: "eth_requestAccounts" }); const { chainId } = this.metamaskProvider; if (chainId !== (this.chainConfig as CustomChainConfig).chainId) { - if (!this.getChainConfig((this.chainConfig as CustomChainConfig).chainId)) await this.addChain(this.chainConfig as CustomChainConfig, true); + await this.addChain(this.chainConfig as CustomChainConfig, true); await this.switchChain(this.chainConfig as CustomChainConfig, true); } this.status = ADAPTER_STATUS.CONNECTED;