Open xoac opened 1 month ago
Thanks for reporting this and for the reproducible example.
It looks we are failing to parse
"evidence": []
into
pub evidence: ::core::option::Option<EvidenceList>,
Here is what tendermint-rs expects for an empty evidence list, as returned by eg. Osmosis:
"evidence": {
"evidence": []
},
This would also work:
"evidence": null
As far as I know, SEI uses a custom fork of Tendermint, which may explain why the output does not match what we are expecting.
Nonetheless, we should probably ensure we accept []
as a valid empty evidence list.
What went wrong?
When query sei tendermint node last_block serialization failed
Reproduce code:
Cargo.toml
main.rs
then
Example result:
Definition of "done"
De-serialization of last block from SEI tendermint is parsed correctly. The crate works for other chains so I am not sure if this is issue on this crate or tendermint implementation.