2021-11-17 13:32:05 +00:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
2022-06-19 09:43:41 +00:00
|
|
|
"github.com/evmos/ethermint/x/feemarket/types"
|
2021-11-17 13:32:05 +00:00
|
|
|
)
|
|
|
|
|
2021-11-19 16:22:25 +00:00
|
|
|
func (suite *KeeperTestSuite) TestSetGetParams() {
|
2021-11-17 13:32:05 +00:00
|
|
|
params := suite.app.FeeMarketKeeper.GetParams(suite.ctx)
|
|
|
|
suite.Require().Equal(types.DefaultParams(), params)
|
|
|
|
params.ElasticityMultiplier = 3
|
|
|
|
suite.app.FeeMarketKeeper.SetParams(suite.ctx, params)
|
|
|
|
newParams := suite.app.FeeMarketKeeper.GetParams(suite.ctx)
|
|
|
|
suite.Require().Equal(newParams, params)
|
|
|
|
}
|