diff --git a/x/bitcoincommiter/client/cli/query.go b/x/bitcoincommiter/client/cli/query.go index e87a6cb5b0..ac25fc9c07 100644 --- a/x/bitcoincommiter/client/cli/query.go +++ b/x/bitcoincommiter/client/cli/query.go @@ -14,7 +14,7 @@ import ( ) // GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { +func GetQueryCmd(_ string) *cobra.Command { // Group bitcoincommiter queries under a subcommand cmd := &cobra.Command{ Use: types.ModuleName, diff --git a/x/bitcoincommiter/keeper/params.go b/x/bitcoincommiter/keeper/params.go index b38f6df78d..99b1de39bf 100644 --- a/x/bitcoincommiter/keeper/params.go +++ b/x/bitcoincommiter/keeper/params.go @@ -6,7 +6,7 @@ import ( ) // GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { +func (k Keeper) GetParams(_ sdk.Context) types.Params { return types.NewParams() } diff --git a/x/bitcoincommiter/module.go b/x/bitcoincommiter/module.go index 219c85bc4b..6fbb621eb4 100644 --- a/x/bitcoincommiter/module.go +++ b/x/bitcoincommiter/module.go @@ -62,7 +62,7 @@ func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { } // ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { +func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error { var genState types.GenesisState if err := cdc.UnmarshalJSON(bz, &genState); err != nil { return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) diff --git a/x/bitcoincommiter/module_simulation.go b/x/bitcoincommiter/module_simulation.go index 14ce670dc9..0a8b8f3d06 100644 --- a/x/bitcoincommiter/module_simulation.go +++ b/x/bitcoincommiter/module_simulation.go @@ -47,7 +47,7 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} // WeightedOperations returns the all the gov module operations with their respective weights. -func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { +func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation { operations := make([]simtypes.WeightedOperation, 0) // this line is used by starport scaffolding # simapp/module/operation diff --git a/x/bitcoincommiter/types/codec.go b/x/bitcoincommiter/types/codec.go index fb6871d22c..a4896cdbb4 100644 --- a/x/bitcoincommiter/types/codec.go +++ b/x/bitcoincommiter/types/codec.go @@ -2,14 +2,14 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + cdctypes "github.com/cosmos/cosmos-sdk/codec/types" // this line is used by starport scaffolding # 1 "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(cdc *codec.LegacyAmino) { +func RegisterCodec(_ *codec.LegacyAmino) { // this line is used by starport scaffolding # 2 -} +} func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // this line is used by starport scaffolding # 3 @@ -18,6 +18,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { } var ( - Amino = codec.NewLegacyAmino() + Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )