2021-11-17 13:32:05 +00:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
2022-09-07 06:36:11 +00:00
|
|
|
"github.com/cerc-io/laconicd/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)
|
|
|
|
}
|