Open damiannolan opened 2 months ago
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.
cosmwasm_std::Binary
Consider using this in favour of alias Bytes wrapping Vec<u8> and serde annotations.
Bytes
Vec<u8>
for example:
- #[schemars(with = "String")] - #[serde(with = "Base64", default)] - pub client_message: Bytes, + pub client_message: cosmwasm_std::Binary
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
wrappingVec<u8>
and serde annotations.for example: