ethereumdevio-dex-tutorial icon indicating copy to clipboard operation
ethereumdevio-dex-tutorial copied to clipboard

Error when using large numbers

Open elmartino opened this issue 3 years ago • 0 comments

Hi,

I tried your code (part1) and works correctly if i for example want to get the rates from LINK to ETH for 1 or 10 LINK. If i use 1000 LINK the script crashes with an error Error: invalid number value (arg="amount", coderType="uint256", value="1e+21")

Have you got any idea?

All the best!

elmartino avatar Dec 14 '21 11:12 elmartino