Skip to content

OverFlow on Nonce Value #5002

Open
Open
@felinblackcat

Description

@felinblackcat

Ethers Version

6.13.2

Search Terms

No response

Describe the Problem

The function getNumber return "invalid numeric string: overflow ..." with nonce value "0xb2f1e00c44e90a8e"
The contract schema blockchian has defined nonce as uint64.
Tecnically:
0 <= 0xb2f1e00c44e90a8e=12894333551438793358<=18446744073709551615 = 0xFFFFFFFFFFFFFFFF

Code Snippet

getNumber("0xb2f1e00c44e90a8e")

Contract ABI

Errors

"invalid numeric string: overflow (argument=\"value\", value=12894333551438793358, code=INVALID_ARGUMENT, version=6.13.2) (argument=\"value\", value=\"0xb2f1e00c44e90a8e\", code=INVALID_ARGUMENT, version=6.13.2)"

Environment

React Native/Expo/JavaScriptCore

Environment (Other)

No response

Metadata

Metadata

Assignees

Labels

investigateUnder investigation and may be a bug.v6Issues regarding v6

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions