Skip to content
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

Consider using cosmwasm_std::Binary in favour of self defined bytes types #506

Open
damiannolan opened this issue Jul 8, 2024 · 0 comments

Comments

@damiannolan
Copy link

https://docs.rs/cosmwasm-std/2.0.4/cosmwasm_std/struct.Binary.html

The cosmwasm_std::Binary type conveniently handles base64 serde functionality out of the box.

Consider using this in favour of alias Bytes wrapping Vec<u8> and serde annotations.

for example:

- #[schemars(with = "String")]
- #[serde(with = "Base64", default)]
- pub client_message: Bytes,
+ pub client_message: cosmwasm_std::Binary
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

No branches or pull requests

1 participant