Skip to content

Commit

Permalink
fix: argent mobile and webwallet chainId method remove ensureWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Nov 13, 2023
1 parent 4d1a81b commit a8ca44e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/connectors/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ export class ArgentMobileConnector extends Connector {
}

async chainId(): Promise<bigint> {
await this.ensureWallet()

if (!this._wallet) {
if (!this._wallet || !this.wallet.account || !this._wallet.provider) {
throw new ConnectorNotConnectedError()
}

Expand Down
4 changes: 1 addition & 3 deletions src/connectors/webwallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ export class WebWalletConnector extends Connector {
}

async chainId(): Promise<bigint> {
await this.ensureWallet()

if (!this._wallet) {
if (!this._wallet || !this.wallet.account || !this._wallet.provider) {
throw new ConnectorNotConnectedError()
}

Expand Down

0 comments on commit a8ca44e

Please sign in to comment.