We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
impl<T> CustomMsg for Option<T> where T: CustomMsg {}
Is it possible to add impl<T> CustomMsg for Option<T> where T: CustomMsg {} it here:
cosmwasm/packages/std/src/results/cosmos_msg.rs
Lines 20 to 22 in 11cc041
Because I cannot do this in my contract ofc.
The text was updated successfully, but these errors were encountered:
Could you explain more about the use case? How should that be implemented?
Sorry, something went wrong.
In your code you have this:
defined in cosmos_msg.rs:
impl CustomMsg for Empty {}
But this is missing: impl CustomMsg for Option<Empty> {}
impl CustomMsg for Option<Empty> {}
Ofc I cannot add it in my contract and get this error:
Since this is missing - it is not possible having CustomMsg for Option<Empty> - it is even not possible having any custom struct for Option<T>.
CustomMsg
Option<Empty>
Option<T>
CollectionInfo
RoyaltyInfo
@webmaster128 see workaround here: CosmWasm/cw-nfts#156 (comment)
No branches or pull requests
Is it possible to add
impl<T> CustomMsg for Option<T> where T: CustomMsg {}
it here:cosmwasm/packages/std/src/results/cosmos_msg.rs
Lines 20 to 22 in 11cc041
Because I cannot do this in my contract ofc.
The text was updated successfully, but these errors were encountered: