Skip to content

Commit

Permalink
unused-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Jun 19, 2023
1 parent 0d7037c commit 55e6862
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/apps/29-fee/ica_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (s *FeeTestSuite) TestFeeInterchainAccounts() {
s.Require().Equal(preEscrowBalance.SubAmount(defaultRecvFee.AmountOf(sdk.DefaultBondDenom)), postDistBalance)
}

func buildInterchainAccountsPacket(path *ibctesting.Path, data []byte, seq uint64) channeltypes.Packet {
func buildInterchainAccountsPacket(path *ibctesting.Path, data []byte, _ uint64) channeltypes.Packet {
packet := channeltypes.NewPacket(
data,
1,
Expand Down
6 changes: 3 additions & 3 deletions modules/apps/transfer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (im IBCModule) OnChanOpenTry(

// OnChanOpenAck implements the IBCModule interface
func (IBCModule) OnChanOpenAck(
ctx sdk.Context,
portID,
channelID string,
_ sdk.Context,
_,
_ string,
_ string,
counterpartyVersion string,
) error {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/02-client/migrations/v7/solomachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (*ClientState) VerifyMembership(
// VerifyNonMembership panics!
func (*ClientState) VerifyNonMembership(
_ sdk.Context,
_clientStore sdk.KVStore,
_ sdk.KVStore,
_ codec.BinaryCodec,
_ exported.Height,
_ uint64,
Expand Down
4 changes: 2 additions & 2 deletions modules/core/02-client/migrations/v7/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func handleSolomachineMigration(ctx sdk.Context, store sdk.KVStore, cdc codec.Bi

// handlerTendermintMigration asserts that the tendermint client in state can be decoded properly.
// This ensures the upgrading chain properly registered the tendermint client types on the chain codec.
func handleTendermintMigration(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, clientKeeper ClientKeeper) error {
func handleTendermintMigration(ctx sdk.Context, store sdk.KVStore, _ codec.BinaryCodec, clientKeeper ClientKeeper) error {
clients, err := collectClients(ctx, store, exported.Tendermint)
if err != nil {
return err
Expand Down Expand Up @@ -113,7 +113,7 @@ func handleTendermintMigration(ctx sdk.Context, store sdk.KVStore, cdc codec.Bin
}

// handleLocalhostMigration removes all client and consensus states associated with the localhost client type.
func handleLocalhostMigration(ctx sdk.Context, store sdk.KVStore, cdc codec.BinaryCodec, clientKeeper ClientKeeper) error {
func handleLocalhostMigration(ctx sdk.Context, store sdk.KVStore, _ codec.BinaryCodec, clientKeeper ClientKeeper) error {
clients, err := collectClients(ctx, store, Localhost)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion modules/core/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type MockStakingKeeper struct {
mockField string
}

func (MockStakingKeeper) GetHistoricalInfo(_ sdk.Context, height int64) (stakingtypes.HistoricalInfo, bool) {
func (MockStakingKeeper) GetHistoricalInfo(_ sdk.Context, _ int64) (stakingtypes.HistoricalInfo, bool) {
return stakingtypes.HistoricalInfo{}, true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (ClientState) CheckForMisbehaviour(_ sdk.Context, _ codec.BinaryCodec, _ sd
return false
}

func (cs ClientState) verifyMisbehaviour(_ sdk.Context, cdc codec.BinaryCodec, _ sdk.KVStore, _ *Misbehaviour) error {
func (cs ClientState) verifyMisbehaviour(_ sdk.Context, cdc codec.BinaryCodec, _ sdk.KVStore, misbehaviour *Misbehaviour) error {
// NOTE: a check that the misbehaviour message data are not equal is done by
// misbehaviour.ValidateBasic which is called by the 02-client keeper.
// verify first signature
Expand Down

0 comments on commit 55e6862

Please sign in to comment.