From b567624d6ab06aacef2c9ef458412c7391c6a3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Kunze=20K=C3=BCllmer?= <31522760+fedekunze@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:21:51 +0200 Subject: [PATCH] tests: update consensus params (#1117) * tests: update consensus params * fix --- x/evm/handler_test.go | 2 +- x/evm/keeper/keeper_test.go | 2 +- x/feemarket/keeper/integration_test.go | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x/evm/handler_test.go b/x/evm/handler_test.go index c78a2420d2..cb381e13b3 100644 --- a/x/evm/handler_test.go +++ b/x/evm/handler_test.go @@ -111,7 +111,7 @@ func (suite *EvmTestSuite) DoSetupTest(t require.TestingT) { abci.RequestInitChain{ ChainId: "ethermint_9000-1", Validators: []abci.ValidatorUpdate{}, - ConsensusParams: simapp.DefaultConsensusParams, + ConsensusParams: app.DefaultConsensusParams, AppStateBytes: stateBytes, }, ) diff --git a/x/evm/keeper/keeper_test.go b/x/evm/keeper/keeper_test.go index 1c0deea5e3..af5975d2e5 100644 --- a/x/evm/keeper/keeper_test.go +++ b/x/evm/keeper/keeper_test.go @@ -131,7 +131,7 @@ func (suite *KeeperTestSuite) DoSetupTest(t require.TestingT) { abci.RequestInitChain{ ChainId: "ethermint_9000-1", Validators: []abci.ValidatorUpdate{}, - ConsensusParams: simapp.DefaultConsensusParams, + ConsensusParams: app.DefaultConsensusParams, AppStateBytes: stateBytes, }, ) diff --git a/x/feemarket/keeper/integration_test.go b/x/feemarket/keeper/integration_test.go index 1ad9486dc4..c9e7ae9b1b 100644 --- a/x/feemarket/keeper/integration_test.go +++ b/x/feemarket/keeper/integration_test.go @@ -39,7 +39,7 @@ var _ = Describe("Ethermint App min gas prices settings: ", func() { msg banktypes.MsgSend ) - var setupChain = func(cliMinGasPricesStr string) { + setupChain := func(cliMinGasPricesStr string) { // Initialize the app, so we can use SetMinGasPrices to set the // validator-specific min-gas-prices setting db := dbm.NewMemDB() @@ -68,7 +68,7 @@ var _ = Describe("Ethermint App min gas prices settings: ", func() { ChainId: "ethermint_9000-1", Validators: []abci.ValidatorUpdate{}, AppStateBytes: stateBytes, - ConsensusParams: simapp.DefaultConsensusParams, + ConsensusParams: app.DefaultConsensusParams, }, ) @@ -76,7 +76,7 @@ var _ = Describe("Ethermint App min gas prices settings: ", func() { s.SetupApp(false) } - var setupTest = func(cliMinGasPrices string) { + setupTest := func(cliMinGasPrices string) { setupChain(cliMinGasPrices) privKey, address = generateKey() @@ -99,7 +99,7 @@ var _ = Describe("Ethermint App min gas prices settings: ", func() { s.Commit() } - var setupContext = func(cliMinGasPrice string, minGasPrice sdk.Dec) { + setupContext := func(cliMinGasPrice string, minGasPrice sdk.Dec) { setupTest(cliMinGasPrice + s.denom) params := types.DefaultParams() params.MinGasPrice = minGasPrice