You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 u64s as strings instead of javascript numbers to avoid issues with Number.MAX_SAFE_INTEGER.
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: