From bc667e7431f0f92b8bb1bf6ce2bbbb248af79a96 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Wed, 24 Jan 2024 21:54:32 +0530 Subject: [PATCH] updating testutil and simulation --- app/simulation_test.go | 7 +++++++ testutil/network/network.go | 1 + 2 files changed, 8 insertions(+) diff --git a/app/simulation_test.go b/app/simulation_test.go index 15c5f5fe..14b0e81f 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -99,6 +99,7 @@ func BenchmarkSimulation(b *testing.B) { 0, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, baseapp.SetChainID(config.ChainID), ) require.Equal(b, app.Name, bApp.Name()) @@ -175,6 +176,7 @@ func TestAppStateDeterminism(t *testing.T) { simcli.FlagPeriodValue, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, fauxMerkleModeOpt, baseapp.SetChainID(chainID), ) @@ -253,6 +255,7 @@ func TestAppImportExport(t *testing.T) { 0, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, baseapp.SetChainID(config.ChainID), ) require.Equal(t, app.Name, bApp.Name()) @@ -314,6 +317,7 @@ func TestAppImportExport(t *testing.T) { 0, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, baseapp.SetChainID(config.ChainID), ) require.Equal(t, app.Name, bApp.Name()) @@ -407,6 +411,7 @@ func TestAppSimulationAfterImport(t *testing.T) { 0, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, fauxMerkleModeOpt, baseapp.SetChainID(config.ChainID), ) @@ -474,6 +479,7 @@ func TestAppSimulationAfterImport(t *testing.T) { 0, app.MakeEncodingConfig(), appOptions, + app.EmptyWasmOpts, fauxMerkleModeOpt, baseapp.SetChainID(config.ChainID), ) @@ -515,6 +521,7 @@ func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage) { 5, encCdc, simtestutil.EmptyAppOptions{}, + app.EmptyWasmOpts, ) return fapp, app.NewDefaultGenesisState(encCdc.Marshaler) } diff --git a/testutil/network/network.go b/testutil/network/network.go index 94238896..9847d738 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -69,6 +69,7 @@ func DefaultConfig() network.Config { 0, encoding, simtestutil.EmptyAppOptions{}, + app.EmptyWasmOpts, baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)), baseapp.SetMinGasPrices(val.GetAppConfig().MinGasPrices), baseapp.SetChainID(chainID),