aeternity / aescan

Block Explorer and Analytics Platform
ISC License
6 stars 3 forks source link

Confusing scientific notation for numbers #849

Open nikita-fuchs opened 3 days ago

nikita-fuchs commented 3 days ago

Not sure if bug or feature, but the following leads to confusions in debugging contract calls: When looking at this transaction, https://aescan.io/transactions/th_2SWUUuQZ5YS1G1ZxFQ41Dny1enTA79D98reojKm9qKB5vv1Kx1

you can see in the calldata { "type": "int", "value": 1e+22 }. Especially people not from the team get the impression that this function was actually called with the param 1e+22 (we ran into this issue while debugging things around this transaction with half a dozen people). The API returns the full number, is the scientific notation intentional or maybe even happening through VueJS or some other JS autoconversion magic? I see eventual benefits of a more compact notation, but the tradeoff for this is straight confusion.