WalletConnect / web3modal-react-native

Web3Modal React-Native SDK
https://web3modal.com
Apache License 2.0
46 stars 15 forks source link

[bug]: Trust wallet - No matching key. pairing: undefined #60

Closed StevenBarnett1 closed 1 year ago

StevenBarnett1 commented 1 year ago

Description

When connecting on trust wallet on polygon im getting these errors

ERROR {"context": "core"} {"context": "core/pairing"} {"context": "core/pairing/pairing"} No matching key. pairing: undefined ERROR {"context": "client"} [Error: No matching key. pairing: undefined]

Then when trying to send a transaction it says walletconnect session disconnected and i see this error:

ERROR {"context": "core"} {"context": "core/expirer"} No matching key. expirer: topic:f3049d397e51dfeeabb06bc2f843cf733a667679fb20923f7ed56b1cfec8a9f7

Web3Modal SDK version

1.0.0-alpha.7

Output of npx react-native info

ERROR {"context": "core"} {"context": "core/pairing"} {"context": "core/pairing/pairing"} No matching key. pairing: undefined ERROR {"context": "client"} [Error: No matching key. pairing: undefined]

ERROR {"context": "core"} {"context": "core/expirer"} No matching key. expirer: topic:f3049d397e51dfeeabb06bc2f843cf733a667679fb20923f7ed56b1cfec8a9f7

Expo Version (if applies)

No response

Steps to reproduce

Try to connect to alphawallet on polygon and see the first error. Then try to send a transaction and i get the second error and trustwallet says walletconnect is disconnected

Snack, code example, screenshot, or link to a repository

Screen Shot 2023-06-16 at 10 59 36 AM

StevenBarnett1 commented 1 year ago

Update: It looks like this only happens if i add an object to rpcMap, if i leave it as an empty object it works. How can i use a custom rpc endpoint to avoid congestion if this doesnt work? The transaction still doesn't go through because of the failed to decrypt error from trustwallet though.

ignaciosantise commented 1 year ago

hey @StevenBarnett1 👋 The Error: No matching key. pairing: undefined error is not related with the wallets, and you shouldn't worry about it. It's a log coming from one of our core packages that won't affect functionalities. We'll remove it soon. There's a discussion here too: https://github.com/WalletConnect/web3modal-react-native/issues/38

Trust Wallet still has this issue that doesn't allow web3modal work properly, not even the web sdk using deeplinks. Trust is aware of this, but im not sure when they'll fix it.

If you still want to test with Trust, the Android version works good

StevenBarnett1 commented 1 year ago

Thanks for the response, we're only on ios right now. What about the rpcMap issue in my second comment?

ignaciosantise commented 1 year ago

Hey @StevenBarnett1 can you explain what works/doesnt work adding a custom rpc endpoint?

ignaciosantise commented 1 year ago

Also, Trust Wallet v8.9 is already available for iOS

StevenBarnett1 commented 1 year ago

When I add custom RPC endpoint and use trustwallet when it opens trustwallet and tries to connect it says that it has been disconnected. This doesn't happen if i have rpcMap as an empty object though. So not a huge deal but it is strange