-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get serde parse error
when call block_results
#1325
Comments
|
The feature list must have been I can confirm the error even with the 0.34 compatibility mode. Will investigate. Unfortunately, this is not expected to work correctly with a 0.34 node, as the protocol has changed and we lack the means to auto-detect it reliably, other than hitting the status endpoint: use tendermint_rpc::{endpoint::block_results, Client, HttpClient};
#[tokio::main]
async fn main() {
let client = HttpClient::new("https://rpc.osmosis.zone:443").unwrap();
let result = client.perform(block_results::Request::default()).await;
println!("{:?}", result);
} |
The cause, in this example, is that the example uses the It's confusing now that the |
This method doc on /// This method is used by the default implementations of specific
/// endpoint methods. The latest protocol dialect is assumed to be invoked. |
What went wrong?
I just write simple code for get latest block result from osmosis json-rpc.
Because the version of osmosis tendermint is v0.34, I tried compat mode
V0_34
too. It isnt changed.When I call the
client.perform
method, the response alwaysserde parse error
Steps to reproduce
Here's core I wrote
I also attach v0.34 code
Here's the
Cargo.toml
When try to execute program, I got
Definition of "done"
Able to get
block_results
from osmosis json-rpc.The text was updated successfully, but these errors were encountered: