Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

eth_sendTransaction throws error because nonce is missing #19

Open
geigerzaehler opened this issue Oct 7, 2020 · 3 comments
Open

eth_sendTransaction throws error because nonce is missing #19

geigerzaehler opened this issue Oct 7, 2020 · 3 comments

Comments

@geigerzaehler
Copy link
Contributor

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.

@PeterTheOne
Copy link
Contributor

I also have this problem.

@pedrouid
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@PeterTheOne @geigerzaehler @pedrouid and others