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
Just to elaborate, this would be used to effectively "embed" or "inherit" another ExecuteMsg, for example, to implement a standard interface. If there's a better way to do this ergonomically I'm all ears, but I found this error preventing me from the most idiomatic solution.
Don't use #[cw_serde]: It's just an alias for a bunch of attributes, so you can just add them yourself, omitting JsonSchema. See here for the attributes.
Put the #[serde(untagged)] on the enum itself and wrap your messages in another enum. Then your example would look like this:
When trying to add serde attributes, I get the "unknown serde variant attribute" error. Sample code:
And the compiler error:
The text was updated successfully, but these errors were encountered: