2021-11-17 13:32:05 +00:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tharsis/ethermint/x/feemarket/types"
|
|
|
|
)
|
|
|
|
|
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)
|
|
|
|
}
|