kendricktan / miao

Ethereum Transaction Decoder Service
MIT License
39 stars 7 forks source link

Erroneous hex/decimal conversion in results? #2

Open beaugunderson opened 3 years ago

beaugunderson commented 3 years ago

First off--thanks for miao, it's incredibly useful.

I'm looking at a transaction on Polygon mainnet that involves a transfer:

image

92233720368547758080 in decimal is 50000000000000000 in hex, but 50000000000000000 is the decimal number I passed into the call to begin with, so it seems like it's being interpreted incorrectly by miao. I would expect to see _value=50000000000000000 in the output.

In the input data you can see I've passed in the hexadecimal value for 50000000000000000, b1a2bc2ec50000:

image