fixed linter issues

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-02-26 11:25:52 +01:00
parent b14f175eba
commit 6fe2ab643e
No known key found for this signature in database
4 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,8 @@ import (
"github.com/cosmos/cosmos-sdk/store"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/stretchr/testify/require"
)
@ -58,6 +60,7 @@ func MachineKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
addressStoreKey,
memStoreKey,
paramsSubspace,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())

View File

@ -4,6 +4,7 @@ import (
"strconv"
"encoding/json"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
@ -32,7 +33,7 @@ func CmdUpdateParams() *cobra.Command {
msg := types.NewMsgUpdateParams(
clientCtx.GetFromAddress().String(),
argParams,
*argParams,
)
if err := msg.ValidateBasic(); err != nil {
return err

View File

@ -52,6 +52,7 @@ func NewKeeper(
addressIndexStoreKey: addressIndexStoreKey,
memKey: memKey,
paramstore: ps,
authority: authority,
}
}

View File

@ -9,7 +9,7 @@ const TypeMsgUpdateParams = "update_params"
var _ sdk.Msg = &MsgUpdateParams{}
func NewMsgUpdateParams(authority string, params *Params) *MsgUpdateParams {
func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams {
return &MsgUpdateParams{
Authority: authority,
Params: params,