What Wallet Connect product should I use for Angular? #3348
Replies: 1 comment 2 replies
-
There's a current issue with chain switching and MetaMask |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. Till now we had metamask injected in the browser to connect to an Angular app and sign some messages. I tried to integrate web3Modal the HTML one but i can not get the listeners to tell me when the account has changed or the chain has changed. In the metamask i used something like:
public listenForChainChanges(): Observable {
this.provider?.on("chainChanged", (chainId: string) => {
this.chainChangeSubject.next(chainId);
});
}
But for wallet connect i cannot get the onChainChanged listener from the
this.web3Modal.subscribeModal(async (newState: any) => {
this.provider = newState;
Also:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions