CosmWasm / wasmvm

Go bindings to the CosmWasm VM
Apache License 2.0
173 stars 102 forks source link

Change type of supported capabilities to set or array of strings #425

Closed webmaster128 closed 9 months ago

webmaster128 commented 1 year ago

In https://github.com/CosmWasm/wasmvm/blob/a2cb78bc33aa73cf7c9d11bdf6f57303812570b9/lib.go#L31 we should accept more structured data and internalize the string representation of supported capabilities.

Ideally we can use a set but as far as I can tell there as no sets in Go. We can also use a []string.