Add configurable control to upload code

This commit is contained in:
Alex Peters
2020-07-08 15:54:02 +02:00
parent 8a547179d2
commit 85a404691a
28 changed files with 521 additions and 120 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
"testing"
"github.com/CosmWasm/wasmd/x/wasm"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
db "github.com/tendermint/tm-db"
@@ -38,6 +39,7 @@ func TestBlackListedAddrs(t *testing.T) {
func setGenesis(gapp *WasmApp) error {
genesisState := simapp.NewDefaultGenesisState()
genesisState[wasm.ModuleName] = wasm.AppModuleBasic{}.DefaultGenesis()
stateBytes, err := codec.MarshalJSONIndent(gapp.Codec(), genesisState)
if err != nil {
return err