mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-27 15:53:41 +00:00
* add MintAddress to params.proto * ignite scaffold message update-params params:Params --module dao * add dao get and set params * make dao.MsgUpdateParams.Params non-nullable * use GetMintAddress in ante handler * adjust dao e2e test suit for mint address param * change msg creator to authority and set gov module as default in gov proposal * fix staticcheck error * remove depricated config param * fix linter errors Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
19 lines
388 B
Go
19 lines
388 B
Go
package keeper_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
testkeeper "github.com/planetmint/planetmint-go/testutil/keeper"
|
|
"github.com/planetmint/planetmint-go/x/dao/types"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetParams(t *testing.T) {
|
|
k, ctx := testkeeper.DaoKeeper(t)
|
|
params := types.DefaultParams()
|
|
|
|
_ = k.SetParams(ctx, params)
|
|
|
|
require.EqualValues(t, params, k.GetParams(ctx))
|
|
}
|