xmtp-flutter icon indicating copy to clipboard operation
xmtp-flutter copied to clipboard

Bug: The example application doesn't connect with the metamask wallet...

Open airoasis opened this issue 2 years ago • 3 comments

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

  1. Run the example application of the flutter SDK
  2. Click the connect Connect Wallet button

airoasis avatar Oct 10 '23 04:10 airoasis

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!

humanagent avatar Nov 07 '23 00:11 humanagent

@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.

cscoderr avatar Jan 27 '24 10:01 cscoderr

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.

Babak-gh avatar Jan 30 '24 18:01 Babak-gh