diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index abe2b03..f97206c 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -112,9 +112,7 @@ export class ArgentMobileConnector extends Connector { } async chainId(): Promise { - await this.ensureWallet() - - if (!this._wallet) { + if (!this._wallet || !this.wallet.account || !this._wallet.provider) { throw new ConnectorNotConnectedError() } diff --git a/src/connectors/webwallet/index.ts b/src/connectors/webwallet/index.ts index f5514ed..18ddfb8 100644 --- a/src/connectors/webwallet/index.ts +++ b/src/connectors/webwallet/index.ts @@ -131,9 +131,7 @@ export class WebWalletConnector extends Connector { } async chainId(): Promise { - await this.ensureWallet() - - if (!this._wallet) { + if (!this._wallet || !this.wallet.account || !this._wallet.provider) { throw new ConnectorNotConnectedError() }