Skip to content

Fix serialization/deserialization for Option #113

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 3 commits into from
May 13, 2024

Conversation

shapeshed
Copy link
Contributor

The previous implementation threw a type error.

| ::serde::Serialize,
| ^^^^^^^^^^^^^^^^^^ expected &[u8], found &Option<Vec<u8>>

This adds custom serde functions and an additional transformer to
handle the option correctly.

shapeshed added 3 commits May 3, 2024 10:40
The previous implementation threw a type error.

|     ::serde::Serialize,
|     ^^^^^^^^^^^^^^^^^^ expected `&[u8]`, found `&Option<Vec<u8>>`

This adds custom serde functions and an additional transformer to
handle the option correctly.

packages/osmosis-std/src/types/cosmos/base/query/v1beta1.rs
@iboss-ptk iboss-ptk merged commit ad96f7d into osmosis-labs:main May 13, 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