Skip to content

Commit

Permalink
feat(web3-react): remove onAccountChanged handle
Browse files Browse the repository at this point in the history
  • Loading branch information
q20274982 committed Jan 17, 2024
1 parent 502bf49 commit 44e3566
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions adapters/web3-react-connector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export class BloctoConnector extends Connector {
});
this.actions.update({ chainId: parseChainId(chainId), accounts });
});
this.provider.on('accountsChanged', (accounts: string[]): void => {
if (accounts.length === 0) this.actions.resetState();
else this.actions.update({ accounts });
});
}

public async activate(
Expand Down

0 comments on commit 44e3566

Please sign in to comment.