q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
200 stars 86 forks source link

comparison of String with Integer failed #110

Closed pynixwang closed 2 years ago

pynixwang commented 2 years ago

I encode a uint256 with a string. eg "10000000000000000000000" from json.

and there is no convert cause this error.

pynixwang commented 2 years ago

Abi.encode(["uint256"],["10000000000000000000000"])

pynixwang commented 2 years ago

function abi and args are from json body, so I can not convert it explicitly.

pynixwang commented 2 years ago

and json can not deal big Number

q9f commented 2 years ago

Thank you, I'll try to have a fix soon