filecoin-project / filecoin-project/lily

`TerminateSectors` params extraction may interpret empty array as `null`

Open
#1,021 0 comments 0 reactions 0 assignees View on GitHub
kind/bug P3
Dominant language
Go
Stars
52
Forks
47
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug:
We have found a case where the `TerminateSectors` params contained the following:

`{ "Terminations": [] }`

Upon extracting this w lily via `parsed_messages` model, it comes out like this:

`{ "Terminations": null }`

This breaks the consistency of that value always being an array. It should be fixed to properly extract as `{"Terminations": []}` in the exported data.

Example: https://filfox.info/en/message/bafy2bzaceb7ncdapqvbefefczhc63afexfeytxhtgrix7dvk4jyvurribtfk2

### Lily Version: v0.11.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.