Important: add iterator feature support

This commit is contained in:
Ethan Frey
2021-09-22 19:11:49 +02:00
parent f93461daf4
commit f5dc720926
3 changed files with 3 additions and 3 deletions

View File

@@ -355,7 +355,7 @@ func NewWasmApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest b
// The last arguments can contain custom message handlers, and custom query handlers,
// if we want to allow any custom callbacks
supportedFeatures := "staking,stargate"
supportedFeatures := "iterator,staking,stargate"
app.wasmKeeper = wasm.NewKeeper(
appCodec,
keys[wasm.StoreKey],

View File

@@ -35,7 +35,7 @@ func init() {
var hackatomWasm []byte
const SupportedFeatures = "staking,stargate"
const SupportedFeatures = "iterator,staking,stargate"
func TestNewKeeper(t *testing.T) {
_, keepers := CreateTestInput(t, false, SupportedFeatures)

View File

@@ -31,7 +31,7 @@ type testData struct {
}
func setupTest(t *testing.T) testData {
ctx, keepers := CreateTestInput(t, false, "staking,stargate")
ctx, keepers := CreateTestInput(t, false, "iterator,staking,stargate")
cdc := keeper.MakeTestCodec(t)
data := testData{
module: NewAppModule(cdc, keepers.WasmKeeper, keepers.StakingKeeper),