Skip to content

Filecoin.ChainGetTipSet@v2 not working with lotus-gateway #6552

@hanabi1224

Description

@hanabi1224

Describe the bug

To reproduce

API version: v2
payload:

{
    "jsonrpc": "2.0",
    "method": "Filecoin.ChainGetTipSet",
    "params": [
			{
        "height": {
          "anchor": {
						"key": null
          },
          "at": 3435097,
          "previous": true
        }
      }
    ],
    "id": 123
}

forest response: normal
gateway backed by forest response: JSON-RPC error:\n\tcode: -32602\n\tmessage: error deserializing parameter\n\tdata: {\"error\":\"missing field key\",\"index\":0,\"name\":\"tipsetSelector\",\"type\":\"forest::lotus_json::LotusJson<forest::rpc::types::tipset_selector::TipsetSelector>\"}\n

  1. Go to '...'
  2. Run '....'
  3. See error

Log output

Log Output
paste log output...

Expected behaviour

Screenshots

Environment (please complete the following information):

  • OS:
  • Branch/commit
  • Hardware

Other information and links

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions