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.

signature never resolves on session already existing. [ethereum-provider 1.5.2]

See original GitHub issue

I just did the switch from web3-provider to ethereum-provider. It brought a few issues with it, one of which is that signing does not resolve after the first signature.

To reproduce: Create an instance as usual and signin via QR code and call a signature; eg:

await provider.enable()
signature = await provider.request({ method: 'personal_sign', params: ['hellooooo', app.provider.accounts[0]], jsonrpc: '2.0' })

The first time, this works totally fine, the QR code and signature fully resolves one after the other.

However, if you call this one more time, or after a refresh

await provider.request({ method: 'personal_sign', params: ['hellooooo', app.provider.accounts[0]], jsonrpc: '2.0' })

the signature will pop-up on your phone, but never resolve on the client side.

I’m using metamask mobile as a phone wallet @walletConnect/ethereum-provider 1.5.2

Edit: I have updated @walletConnect/ethereum-provider to 1.6.1.

Now if I don’t refresh after setting the provider and call

await provider.request({ method: 'personal_sign', params: ['hellooooo', app.provider.accounts[0]], jsonrpc: '2.0' })

it will result in a successful signature that will resolve.

HOWEVER the issue is still the same after refreshing the page (even though the provider is defined after refresh).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Benjythebeecommented, Aug 17, 2021

bump @pedrouid ; Sorry for the tag but it seems it’s a relatively widespread issue;

0reactions
finessevanescommented, Dec 14, 2022

@haowang1013 @Shmoji is this still an issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shmoji on Twitter: "@WalletConnect Seems to be a new issue after ...
Seems to be a new issue after updating: github.com. signature never resolves on session already existing. [ethereum-provider 1.5.2] · Issue #564 ·.
Read more >
Not getting success callback/ receipt with walletconnect with ...
I am having the same issue with ganache-cli. The contract deploys but the transactionHash is always undefined. The then callback is never called ......
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/24 19:46:07. Bug:2 - "How do I attach an ebuild." status:RESOLVED resolution:FIXED ...
Read more >
Ethereum Provider API - MetaMask Docs
Recent Breaking Provider Changes. If you are an Ethereum application developer and are looking for information about our January 2021 ...
Read more >
Untitled
Tnt postkantoor veemarkt hoorn, Buy custom stickers, Skate 3 all glitches xbox 360, Just play lion guard, I'll never find another you sheet...
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