CosmWasm / CosmWasm/wasmd

Deprecate `SmartQueryGasLimit`

Open
#2,001 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
416
Forks
538
PR merge metrics
No merged PRs in 30d

Description

We should slowly phase it out because it makes the `SmartContractState` query non-deterministic.
However, RPC nodes currently rely on this to prevent people from querying contracts with infinite loops.
We should redirect them to the [Cosmos SDK query gas limit](https://github.com/cosmos/cosmos-sdk/pull/16239) instead.

To summarize:
- Deprecate `SmartQueryGasLimit`
- Log a warning when it is provided (either in CLI or in config)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.