Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for large numbers in contract #1511

Closed
kangsorang opened this issue Jun 27, 2023 · 2 comments
Closed

Error for large numbers in contract #1511

kangsorang opened this issue Jun 27, 2023 · 2 comments

Comments

@kangsorang
Copy link

kangsorang commented Jun 27, 2023

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

@vbaranov
Copy link
Member

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

@vbaranov vbaranov transferred this issue from blockscout/blockscout Jan 16, 2024
@NikitaSavik
Copy link
Contributor

Couldn't reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants