-
Notifications
You must be signed in to change notification settings - Fork 10
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
bug: deriving serde::{Serialize, Deserialize}
on padding: [u8; >32]
breaks
#56
Comments
Haven't had time to work on this in a while, apologies. In retrospect, the serde feature was kinda half-baked because from our experience, it's being used in a json context most of the time, which would require additional custom de/serialization logic anyway like de/serializing pubkeys as base58-encoded strings instead of byte arrays, serializing I would recommend just turning off the serde feature on the generated crate and handling serde on your own. We might even remove the serde feature in the future. |
When generating the interface for a contract that has a padding fields >32 bytes serde will complain with:
Some options are:
serde_with
(https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as_transformations/index.html#big-array-support)serde-big-array
The text was updated successfully, but these errors were encountered: