Skip to content

Serde Parse Error When Fetching Block Results via HTTP Client on Mantra Chain #1490

@Chris-Hinkle

Description

@Chris-Hinkle

What went wrong?

When calling block_results using the http_client, some blocks return a Serde parse error. Specifically, when querying block height 383302, the response contains a finalize_block_events entry of type "oracle_prices", but the event has no associated attributes.

Steps to reproduce

Using the http_client connect to a mantra public node such as "https://mantra-rpc.publicnode.com:443"

Call block results using the parameter height: 383302 This should return the error.
use tendermint_rpc::{Client, HttpClient}; let http_client = HttpClient::new("https://mantra-rpc.publicnode.com:443")?; let response = http_client.block_results(3833002 as u32).await?;

Definition of "done"

The HTTP client successfully parses block results even when events have no attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions