WalletConnect / Web3ModalFlutter

The Web3Modal for WalletConnect built using Flutter.
https://pub.dev/packages/web3modal_flutter
Apache License 2.0
27 stars 30 forks source link

How can I check selected wallet of user after connecting #89

Closed Mash-Woo closed 3 months ago

Mash-Woo commented 3 months ago

After connecting, I want to check the user's current connected wallet.

Web3modal can't send transactions with Metamask, so I want to check what the user's connected wallet is. I can throw them an alert dialogue if it's a meta mask. We still do not support this function.

quetool commented 3 months ago

Hello @Mash-Woo What do you mean? I use MetaMask regularly with Web3Modal as a lot of other people do as well

Mash-Woo commented 3 months ago

Hello @Mash-Woo What do you mean? I use MetaMask regularly with Web3Modal as a lot of other people do as well

I am facing the same problem with Metamask with this issue although I am using web3modal

https://github.com/WalletConnect/WalletConnectFlutterV2/issues/176

Mash-Woo commented 3 months ago

@quetool Do you have any solutions for this

quetool commented 3 months ago

In order to get to know the connected wallet, you can check the SessionData object after connection. sessionData.peer.metadata.name would be the name of the connected wallet.

Mash-Woo commented 3 months ago

Yes, thank you

Mash-Woo commented 3 months ago

This has been solved. @quetool You can close this