Skip to content

[GQL] extensions.current_fuel_block_height uses js number instead of scalar #3177

@Voxelot

Description

@Voxelot

Elsewhere in the GQL api we use a scalar value to represent the block height, however in the gql extension that provides the block number of each request it uses a plain js number. We should aim to use the same types for representing block height where possible within the GQL api.

example response:

{
  "data": {
    "blocks": {
      "edges": [
        {
          "node": {
            "header": {
              "height": "42531359"
            }
          }
        }
      ]
    }
  },
  "extensions": {
    "current_consensus_parameters_version": 7,
    "current_fuel_block_height": 42531359,
    "current_stf_version": 32
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtThe issue is to improve the current code and make it more clear/generic/reusable/pretty/avoidable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions