tests: update consensus params (#1117)

* tests: update consensus params

* fix
This commit is contained in:
Federico Kunze Küllmer 2022-06-08 15:21:51 +02:00 committed by GitHub
parent 55373e0084
commit b567624d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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,
},
)

View File

@ -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,
},
)

View File

@ -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