Can anyone help with this.... I have a function which takes uint[] as parameter, but when I try to invoke the function via web3. I get an encoding error when the any of the array elements is bigger than 10e15. Please help.
Feb 14, 2021, 1:29 PM
I guess you are using bignumber?
Feb 14, 2021, 1:52 PM
Actually the call is via remix.
I am not sure how to check if remix is using big number while interacting.
Feb 14, 2021, 1:54 PM
Remix support any number of zeros
Feb 14, 2021, 1:58 PM
oh, well use some real framework. remix is mostly good for small testing and I don't know how it handles big numbers
Feb 14, 2021, 1:58 PM
Something else is wrong
Feb 14, 2021, 1:58 PM
decimals? it doesn't support decimals at all. you probably mean digits / integer sizes
Feb 14, 2021, 1:59 PM
Ooh yeah. Mb😅
Feb 14, 2021, 1:59 PM
This is the error “Error encoding arguments: Error: overflow (fault=“overflow”, operation=“BigNumber.from”, value=10000000000000000, code=NUMERIC_FAULT, version=bignumber/5.0.8)
Feb 14, 2021, 2:01 PM
Hmm wierd
Can you share the code
Feb 14, 2021, 2:03 PM
It’s really late here and I am off to bed. I will DM you tomorrow with the code snippet if that’s Ok?
Feb 14, 2021, 2:34 PM