Bug: The example application doesn't connect with the metamask wallet...
Describe the bug
The example application is utilizing the wallet connect v2 that is deprecated... Therefore, the application doesn't work as expected.
Expected behavior
The Metamask shows the signing message, and connect with the example application
Steps to reproduce the bug
- Run the example application of the flutter SDK
- Click the connect Connect Wallet button
Thank you for noticing this issue. The Flutter SDK needs an update for the new WalletConnect version that uses Viem. For a guide on adapting to Viem, you can reference our JS SDK's update here: Viem Support JS SDK.
PRs are welcome if you're interested in contributing!
@fabriguespe Is it possible for the sample application to utilize https://pub.dev/packages/web3modal_flutter instead of the custom wallet class? This adjustment would provide compatibility with a diverse range of wallets, extending support beyond Rainbow and MetaMask.
I've just opened a pr. I did the same implementation in XMTP Android, for more info and detailed explanation please visit https://github.com/xmtp/xmtp-android/issues/121. I tested the implementation in Android, should also work with iOS and more tests needed for web.