Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxing committed Nov 12, 2023
1 parent b3dbacc commit 5d539e9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion x/bitcoincommiter/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion x/bitcoincommiter/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion x/bitcoincommiter/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/bitcoincommiter/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {}

Check warning on line 47 in x/bitcoincommiter/module_simulation.go

View check run for this annotation

Codecov / codecov/patch

x/bitcoincommiter/module_simulation.go#L47

Added line #L47 was not covered by tests

// 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
Expand Down
8 changes: 4 additions & 4 deletions x/bitcoincommiter/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 11 in x/bitcoincommiter/types/codec.go

View check run for this annotation

Codecov / codecov/patch

x/bitcoincommiter/types/codec.go#L10-L11

Added lines #L10 - L11 were not covered by tests
}
}

func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
// this line is used by starport scaffolding # 3
Expand All @@ -18,6 +18,6 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
}

var (
Amino = codec.NewLegacyAmino()
Amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)

0 comments on commit 5d539e9

Please sign in to comment.