Closed chipshort closed 9 months ago
Companion to CosmWasm/cosmwasm#1926
Unfortunately I did not find a succinct way to do this in Go. The other option would be to keep both variants in the struct, make them private and add a Stargate / Any function that differentiates them. But that would also need changes in wasmd.
Stargate
Any
That's the way! We take the burden on us to make the lifes of our users easier (wasmd in this case).
Companion to CosmWasm/cosmwasm#1926
Unfortunately I did not find a succinct way to do this in Go. The other option would be to keep both variants in the struct, make them private and add a
Stargate
/Any
function that differentiates them. But that would also need changes in wasmd.