module_query_safe tag, introduced in CosmosSDK v0.47, is used mark queries that are deterministic and consume gas properly. In ibc-go, we allow such queries to be executed by interchain accounts. Since wasm queries are deterministic and also track their gas usage, they should be marked with this tag. This would allow wasm queries to be executed by interchain accounts and could also provide additional benefits if #1840 is implemented.
Example
Here is a bank query marked with this tag in CosmosSDK v0.50
Description
module_query_safe
tag, introduced in CosmosSDK v0.47, is used mark queries that are deterministic and consume gas properly. In ibc-go, we allow such queries to be executed by interchain accounts. Since wasm queries are deterministic and also track their gas usage, they should be marked with this tag. This would allow wasm queries to be executed by interchain accounts and could also provide additional benefits if #1840 is implemented.Example
Here is a bank query marked with this tag in CosmosSDK v0.50