walletconnect-test-wallet icon indicating copy to clipboard operation
walletconnect-test-wallet copied to clipboard

eth_sendTransaction throws error because nonce is missing

Open geigerzaehler opened this issue 4 years ago • 3 comments

I’m using Web3 v1.2.11 and the latest WalletConnect Web3 Provider to connect my app to the test wallet. When I send a transaction it shows up in the test wallet as expected. Now, if I confirm the pending transaction the test wallet crashes with

react_devtools_backend.js:2273 TypeError: Cannot read property 'replace' of undefined
    at C (index.js:270)
    at Object.M [as hexToNumber] (index.js:97)
    at e.convertHexToNumber (encoding.js:120)
    at Object.render (ethereum.ts:68)
    at n.render (index.ts:23)
    at renderPayload (App.tsx:543)
    at e.render (RequestDisplay.tsx:43)
    at Fa (react-dom.production.min.js:4333)
    at Ua (react-dom.production.min.js:4324)
    at bs (react-dom.production.min.js:6700)

The problem seems to be that the test wallet expects the transaction payload from the app to include the nonce which it does not.

geigerzaehler avatar Oct 07 '20 13:10 geigerzaehler

I also have this problem.

PeterTheOne avatar Jan 07 '21 22:01 PeterTheOne

If I'm not mistaken.. PR #24 fixed this issue. Could you confirm?

pedrouid avatar Jan 13 '21 11:01 pedrouid

widraw

jakubhajek91 avatar Apr 24 '22 19:04 jakubhajek91