-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 null #526
Comments
Can you include a code snippet? :) |
Sure, https://gist.github.com/rjkz808/e94afacb1bfe8a0279dbdcb4cbb26a8a |
I've finally found that ethers.js requires from me to specify the gas limit for every tx. This issue can be closed 😄 |
And for those who are thinking "how do I specify the gas limit...".
|
After not finding how to call web3.utils.toHex(), just searched in the git repo of geth client and found out how to convert decimals to hex:
|
@mamirpanah You probably want |
Description
When I'm trying to call the
ethers.Contract
function (with auint
type argument(s)) I'm getting the next error:The stack trace leads me to the
ethers.utils.bigNumberify
method. I tried to convert args toBigNumber
,string
,number
(usingparseInt
),BN
(why not) - all this tries failed. Initial values are normal integers, when I call the same methods using web3 all is fine. What can be wrong? Thanks in advance for your help 😄Versions
1.0.0-beta.37
4.0.27
The text was updated successfully, but these errors were encountered: