Skip to content

Fix deserialisation error on next_key #112

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

Merged
merged 2 commits into from
May 3, 2024

Conversation

shapeshed
Copy link
Contributor

@shapeshed shapeshed commented May 2, 2024

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.

#104

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

```json
{"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.

osmosis-labs#104

packages/osmosis-std/src/types/cosmos/base/query/v1beta1.rs
packages/osmosis-std/src/types/cosmos/base/query/v1beta1.rs
packages/osmosis-std/src/types/cosmos/base/query/v1beta1.rs
Copy link
Collaborator

@iboss-ptk iboss-ptk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iboss-ptk iboss-ptk merged commit 4ac16d9 into osmosis-labs:main May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants