-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Bug in uint256 type check? doesn't allow numbers over ~100e14 #1936
Comments
It looks like this isn't a problem with web3. I think it's due to MetaMask/metamask-extension#2350 I'm using MetaMask as web3 provider and I was using |
Ah, number inputs need to be in hex format: const { toHex } = web3.utils;
const arguments = [toHex(params.openingTime), ...] |
@mjdietzx Where did you get the info that all number inputs need to be in hex? In 1.0.0-beta34 we could send bignumber decimal strings into web3 without any problems. In 1.0.0-beta.36 there is this extra heuristic added that prevents us to send higher bignumbers to the API. So what piece of documentation or announcement did we miss? |
@wigy-opensource-developer Look at this: #2077 |
fails with:
Uncaught Error: invalid number value (arg="_cap", coderType="uint256", value=10000000000000000)
passes as normal (and any values smaller than 100e13
The text was updated successfully, but these errors were encountered: