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"
|
"github.com/cosmos/cosmos-sdk/store"
|
||||||
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
||||||
sdk "github.com/cosmos/cosmos-sdk/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"
|
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
@ -58,6 +60,7 @@ func MachineKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
|||||||
addressStoreKey,
|
addressStoreKey,
|
||||||
memStoreKey,
|
memStoreKey,
|
||||||
paramsSubspace,
|
paramsSubspace,
|
||||||
|
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
|
||||||
)
|
)
|
||||||
|
|
||||||
ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())
|
ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/client"
|
"github.com/cosmos/cosmos-sdk/client"
|
||||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||||
@ -32,7 +33,7 @@ func CmdUpdateParams() *cobra.Command {
|
|||||||
|
|
||||||
msg := types.NewMsgUpdateParams(
|
msg := types.NewMsgUpdateParams(
|
||||||
clientCtx.GetFromAddress().String(),
|
clientCtx.GetFromAddress().String(),
|
||||||
argParams,
|
*argParams,
|
||||||
)
|
)
|
||||||
if err := msg.ValidateBasic(); err != nil {
|
if err := msg.ValidateBasic(); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -52,6 +52,7 @@ func NewKeeper(
|
|||||||
addressIndexStoreKey: addressIndexStoreKey,
|
addressIndexStoreKey: addressIndexStoreKey,
|
||||||
memKey: memKey,
|
memKey: memKey,
|
||||||
paramstore: ps,
|
paramstore: ps,
|
||||||
|
authority: authority,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ const TypeMsgUpdateParams = "update_params"
|
|||||||
|
|
||||||
var _ sdk.Msg = &MsgUpdateParams{}
|
var _ sdk.Msg = &MsgUpdateParams{}
|
||||||
|
|
||||||
func NewMsgUpdateParams(authority string, params *Params) *MsgUpdateParams {
|
func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams {
|
||||||
return &MsgUpdateParams{
|
return &MsgUpdateParams{
|
||||||
Authority: authority,
|
Authority: authority,
|
||||||
Params: params,
|
Params: params,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user