mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
451bc05f47
* module files * proto types * types and generated proto types * keeper * client scaffold * add savings module to app * remove placeholder types file * implement rest and add to module * update proto types * validation for supported denoms * generate updates proto types * update comments * update comments * remove unused imports from proto files * regenerate proto files * remove abci * remove refs to other modules * remove endblocker call * genesis init test for module account * update genesis test with params * add get/set params test
20 lines
465 B
Go
20 lines
465 B
Go
package keeper_test
|
|
|
|
import (
|
|
"github.com/kava-labs/kava/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)
|
|
}
|