Closed DeshErBojhaa closed 2 months ago
I cannot replicate the issue. This command worked for me:
./build/sedad tx wasm-storage store-data-request-wasm ./x/wasm-storage/keeper/test_utils/cowsay.wasm --wasm-type data-request --trace --from acc1 --keyring-backend test --gas auto --gas-adjustment 1.5 --gas-prices 10000000000aseda -y
This error seems to occur when the stores are not initialized during InitGenesis
. Even if a genesis state is empty, its collection should be initialized with an empty value. I think we are handling wasm-storage's Params
correctly, but please correct me if you think I'm mistaken. I added a fix for ProxyContractRegistry
in #272.
I believe this was just an issue with incorrectly initializing the stores in InitGenesis()
. Should be fixed now.
🐛 Bug Report
params, err := m.Params.Get(ctx)
this line returns error.Steps to Reproduce
tamjid/gas-to-store-drwasm
./build/sedad tx wasm-storage store-data-request-wasm ./x/wasm-storage/keeper/test_utils/cowsay.wasm --wasm-type data-request --trace --from acc1 --keyring-backend test --gas auto --gas-adjustment 20000000000
Error: rpc error: code = Unknown desc = rpc error: code = Unknown desc = failed to execute message; message index: 0: collections: not found: key 'no_key' of type github.com/cosmos/gogoproto/sedachain.wasm_storage.v1.Params [cosmos/cosmos-sdk@v0.50.6/baseapp/baseapp.go:1012] with gas used: '2887337': unknown request