-
Notifications
You must be signed in to change notification settings - Fork 20.9k
graphql: Return Long for gas, gasUsed, cumulativeGasUsed, estimateGas, and status #20040
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
Milestone
Comments
Unfortunately JavaScript does not support 64 bit ints, so we must return hex strings. More details at graphql/graphql-spec#73. The schema should be changed. |
status should probably be an |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current GraphQL schema defines Long as a 64-bit unsigned integer. The values of
gas
,gasUsed
,cumulativeGasUsed
,estimateGas
, andstatus
are now returned as BigInt encoded as a 0x-prefixed string. They should return a number instead.Reproduce running this query
The text was updated successfully, but these errors were encountered: