CosmWasm / wasmvm

Go bindings to the running cosmwasm contracts with wasmer
Apache License 2.0
173 stars 99 forks source link

Handle both `stargate` and `any` CosmosMsg variant #468

Closed chipshort closed 9 months ago

chipshort commented 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.

webmaster128 commented 9 months ago

That's the way! We take the burden on us to make the lifes of our users easier (wasmd in this case).