osmosis-labs / osmosis-rust

Rust libraries for osmosis
Apache License 2.0
59 stars 52 forks source link

Querying Pools ::decode #51

Closed triccs closed 1 year ago

triccs commented 1 year ago

image I'm trying to implement this example from (https://github.com/osmosis-labs/osmosis-rust/tree/main/packages/osmosis-std#querying-pool) but I can't get decode() to work.

This is the error but prost::message::Message is private and prost::Message is flagged as an "unused import". image

Apologize for my ignorance but I'm not sure how to solve this.

iboss-ptk commented 1 year ago

Have you checked your prost version? Mismatched minor version may cause problem. If you are using latest version of osmosis-rust prost must be 0.11.x.

Thinking about it, it might make sense to re-export prost from osmosis-rust...

triccs commented 1 year ago

This lead me in the right direction, I thought I had tried that but I was in the wrong .toml facepalm, thank you