question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Deeplinking on mobile wallets fails for signing transactions using wagmi

See original GitHub issue

Describe the bug

After connecting a wallet with connectkit on a mobile device, if you attempt to sign either a transaction or message using the wagmi hooks, then the wallet app does not open and you stay in the browser. You also don’t get notifications to do anything so it looks like your app just hangs, but it’s waiting for the signing to happen.

To reproduce

https://codesandbox.io/s/condescending-euler-sluziu

This also happens when using a custom wagmi client config instead of getDefaultClient.

Edit: An example in production can be found at https://drops.samking.studio, and the repo can be found here.

Expected behavior

When signing either a transaction or message using the wagmi hooks, the connected wallet app should open e.g. MetaMask mobile, or Rainbow etc. with the prompt to sign the transaction/message.

Screenshots

N/A

Environment details

iOS v16.1 and Safari wagmi@0.7.5 connectkit@0.2.0

Additional context

If I just replace connectkit with @rainbow-me/rainbowkit then the wagmi hooks work perfectly on mobile.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lochiecommented, Nov 8, 2022

Hey @samkingco, this is something we’re looking into. I was hoping to get this fix ready for the latest update but couldn’t quite figure out exactly why this issue is occuring.

So far I’ve discovered that if you create your own wagmi client instead of using our getDefaultClient helper it seems to resolve itself – but from what we can tell the returned value is perfectly fine.

We will still be investigating this further and will let you know when we find a fix.

0reactions
bouzecommented, Dec 25, 2022

Hi, @lochie I too am having trouble with this issue. Can you please let me know your current situation?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · family/connectkit - GitHub
Connecting a wallet, made simple. ... [BUG] Deeplinking on mobile wallets fails for signing transactions using wagmi bug Something isn't working.
Read more >
Sign-In with Ethereum Example - wagmi
Implementing SIWE only takes four steps: Connect wallet; Sign SIWE message with nonce generated by backend; Verify submitted SIWE message and signature via...
Read more >
Newest 'wallet-connect' Questions - Stack Overflow
i am using wagmi's useContractRead to fetch data from my solidity contract, now problem is that in that contract i use msg.sender to...
Read more >
wagmi-dev.eth on Twitter: "Prepare Hooks allow you to ...
By "preparing" our transaction or contract write request *ahead of time*, this means when the user interacts with a click handler, we can...
Read more >
WalletConnect Mobile Linking - Ethereum Stack Exchange
In Android, a deep link is a link that takes you directly without ... to a wallet and will receive either signed transactions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found