Skip to content

graphql: Return Long for gas, gasUsed, cumulativeGasUsed, estimateGas, and status #20040

@adamschmideg

Description

@adamschmideg

The current GraphQL schema defines Long as a 64-bit unsigned integer. The values of gas, gasUsed, cumulativeGasUsed, estimateGas, and status are now returned as BigInt encoded as a 0x-prefixed string. They should return a number instead.

Reproduce running this query

query pending {
  block(number:1) {
    transactions {
      gas
      gasUsed
      cumulativeGasUsed
      status
    }
    estimateGas(data: {})
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions