Skip to content
New issue

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

Mark wasmd queries with module_query_safe #1903

Closed
srdtrk opened this issue Jun 18, 2024 · 0 comments · Fixed by #1915
Closed

Mark wasmd queries with module_query_safe #1903

srdtrk opened this issue Jun 18, 2024 · 0 comments · Fixed by #1915

Comments

@srdtrk
Copy link

srdtrk commented Jun 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant