mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 04:25:27 +00:00
20 lines
466 B
Go
20 lines
466 B
Go
package keeper_test
|
|
|
|
import (
|
|
"github.com/0glabs/0g-chain/x/savings/types"
|
|
)
|
|
|
|
func (suite *KeeperTestSuite) TestGetSetParams() {
|
|
params := suite.keeper.GetParams(suite.ctx)
|
|
suite.Require().Equal(
|
|
types.Params{SupportedDenoms: []string(nil)},
|
|
params,
|
|
)
|
|
|
|
newParams := types.NewParams([]string{"btc", "test"})
|
|
suite.keeper.SetParams(suite.ctx, newParams)
|
|
|
|
fetchedParams := suite.keeper.GetParams(suite.ctx)
|
|
suite.Require().Equal(newParams, fetchedParams)
|
|
}
|