osmosis-labs / osmosis-rust

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

Fix deserialisation error on `next_key` #112

Closed shapeshed closed 4 months ago

shapeshed commented 4 months ago

For queries that return paginated responses the next key value can be null

{"positions":[],"pagination":{"next_key":null,"total":"0"}}

This leads to a deserialisation error. This fixes the issue by making next_key optional.

The issue was first reported by @keyleu with a fix so due credit here.

https://github.com/osmosis-labs/osmosis-rust/issues/104