Skip to content

Complete native token information. #63

@GabrielCamba

Description

@GabrielCamba

Based on this comment will be better to complete the native token information with the name, decimals and symbols.

In case of this query:

{
  token(id: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee") {
    address
    name
    symbol
    decimals
  }
}

We are getting this result:

{
  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "",
      "symbol": "",
      "decimals": 18
    }
  }

Expected result gc:

  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "Native XDAI",
      "symbol": "XDAI",
      "decimals": 18
    }
  }

Expected result mainnet:

  "data": {
    "token": {
      "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "name": "Native Ether",
      "symbol": "ETH",
      "decimals": 18
    }
  }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions