mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35:47 +00:00
fixed linter issues
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
b14f175eba
commit
6fe2ab643e
@ -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())
|
||||
|
||||
@ -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
|
||||
|
||||
@ -52,6 +52,7 @@ func NewKeeper(
|
||||
addressIndexStoreKey: addressIndexStoreKey,
|
||||
memKey: memKey,
|
||||
paramstore: ps,
|
||||
authority: authority,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user