Cosmwasm query out of gas issue after chain upgrade which involves wasmd version upgrade
go7066 opened this issue · comments
Behavior:
We upgraded the testnet successfully and after the network upgrade, cosmwasm query's failing due to the out of gas
issue.
Followings are key upgrades made on-chain
- `cosmos-sdk` upgrade from v0.45.10 to v0.47.6
- `ibc-go` version update from v3.4.0 to v7.3.1
- `wasmd` upgrade from v0.28.0 to v0.41.0
Way to reproduce the issue
teritorid query wasm contract-state smart tori1es773gyhdqq4n7vxwl96y7mmc0zg2yu9mpnpvqsh3sxngmtefcjqf56qxy '{"voting_module":{}}' --node https://rpc.testnet.teritori.com:443
Error: rpc error: code = Unknown desc = out of gas in location: wasm contract; gasWanted: 10000000, gasUsed: 10001333: out of gas: unknown request
Possible solution we are thinking:
- Migrate the contract to newer version of code that's compatible with latest version of wasmd
But is it required to upgrade all the contracts on-chain like that? It would require massive number of new codes deployed on chain.
Would be helpful to get help on contracts migration for wasmd migration from v0.28 to v0.41
The issue was related to ConsensusParams not being set as part of the upgrade handler and it was nil, nil value was unacceptable on one of wasm ante handlers and was causing panic.