frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Error for large numbers in contract

Open kangsorang opened this issue 2 years ago • 1 comments

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 remix

Values checked through the block scout web UI blockscout

kangsorang avatar Jun 27 '23 12:06 kangsorang

@kangsorang could you provide URL where we can reproduce the issue?

vbaranov avatar Aug 21 '23 19:08 vbaranov

Couldn't reproduce

NikitaSavik avatar Jan 09 '25 12:01 NikitaSavik