frontend
frontend copied to clipboard
Error for large numbers in contract
Hi, I'm ayaan from lightscale. I'm using blockscout too well. I've noticed that I'm getting errors in the values I'm using.
Environment
- Deployment type (Manual/Docker/Docker-compose): Docker
- Elixir & Erlang/OTP versions (
elixir -version): latest - Node JS version (
node -v): - Operating System: ubuntu 22.0.4
- Blockscout Version/branch/commit: master
- Archive node type && version (Erigon/Geth/Nethermind/Ganache/?): Geth
Steps to reproduce
The contract is storing a numeric value as a state. When you retrieve it, there will be an error from the actual value.
Expected behaviour
When looking up a value of a specific uint256 type in a contract, you should get the actual value.
Actual behaviour
An 18-digit floating point value receives a value with some of the lower digits vanishing.
Value of a contract retrieved directly through remix
Values checked through the block scout web UI
@kangsorang could you provide URL where we can reproduce the issue?
Couldn't reproduce