Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'toHexString' of undefined #518

Closed
deacix opened this issue May 14, 2019 · 2 comments
Closed

Cannot read property 'toHexString' of undefined #518

deacix opened this issue May 14, 2019 · 2 comments

Comments

@deacix
Copy link

deacix commented May 14, 2019

Got this error after using "estimate" in a contract:

TypeError: Cannot read property 'toHexString' of undefined
at new BigNumber (/app/node_modules/ethers/utils/bignumber.js:89:24)
at Object.bigNumberify (/app/node_modules/ethers/utils/bignumber.js:182:12)
at /app/node_modules/ethers/providers/base-provider.js:839:44
at process._tickCallback (internal/process/next_tick.js:68:7)

The return value is "undefined". The parity node answered very wrong somehow. Will try to get the response together.

Update from 15.06.2019:
Found in Parity logs this response:
Response: {"jsonrpc":"2.0","error":{"code":-32016,"message":"The execution failed due to an exception."},"id":42}.
for eth_estimateGas.

Ethers.js should normally understand the code -32016. Saw it working somewhere.

@ricmoo
Copy link
Member

ricmoo commented May 24, 2019

Can you please provide a contract address, ABI, network, etc? :)

@ricmoo
Copy link
Member

ricmoo commented Oct 19, 2019

I'm going to close this now, but please feel free to re-open with reproduction steps, and I'll take another look...

Thanks! :)

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

No branches or pull requests

2 participants