Skip to content

Commit

Permalink
lint fix:
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Jul 2, 2024
1 parent e78e34e commit d1dec20
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions abci/checktx/check_tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (ba *baseApp) CommitMultiStore() storetypes.CommitMultiStore {

// CheckTx is baseapp's CheckTx method that checks the validity of a
// transaction.
func (baseApp) CheckTx(_ *cometabci.RequestCheckTx) (*cometabci.ResponseCheckTx, error) {
func (ba *baseApp) CheckTx(_ *cometabci.RequestCheckTx) (*cometabci.ResponseCheckTx, error) {
return nil, fmt.Errorf("not implemented")
}

Expand All @@ -418,7 +418,7 @@ func (ba *baseApp) LastBlockHeight() int64 {
}

// GetConsensusParams is utilized to retrieve the consensus params.
func (baseApp) GetConsensusParams(ctx sdk.Context) cmtproto.ConsensusParams {
func (ba *baseApp) GetConsensusParams(_ sdk.Context) cmtproto.ConsensusParams {
return cmtproto.ConsensusParams{
Block: &cmtproto.BlockParams{
MaxBytes: 10000,
Expand Down
10 changes: 5 additions & 5 deletions block/mocks/lane.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lanes/base/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ func (s *BaseTestSuite) TestPrepareLane() {
)
s.Require().NoError(err)

mh := func(tx sdk.Tx) bool {
mh := func(ctx sdk.Context, tx sdk.Tx) bool {
return true
}

Expand Down Expand Up @@ -1043,7 +1043,7 @@ func (s *BaseTestSuite) TestProcessLane() {
s.Require().NoError(err)

// First lane matches this lane the other does not.
mh := func(tx sdk.Tx) bool {
mh := func(ctx sdk.Context, tx sdk.Tx) bool {
return tx == tx1
}

Expand Down Expand Up @@ -1301,7 +1301,7 @@ func (s *BaseTestSuite) TestProcessLane() {
tx4,
}

mh := func(tx sdk.Tx) bool {
mh := func(ctx sdk.Context, tx sdk.Tx) bool {
if tx == tx1 || tx == tx2 {
return false
}
Expand Down Expand Up @@ -1387,7 +1387,7 @@ func (s *BaseTestSuite) TestProcessLane() {
tx4,
}

mh := func(tx sdk.Tx) bool {
mh := func(ctx sdk.Context, tx sdk.Tx) bool {
return true
}

Expand Down Expand Up @@ -1462,7 +1462,7 @@ func (s *BaseTestSuite) TestProcessLane() {
tx4,
}

mh := func(tx sdk.Tx) bool {
mh := func(ctx sdk.Context, tx sdk.Tx) bool {
if tx == tx1 || tx == tx3 {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion lanes/mev/testutils/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (s *MEVLaneTestSuiteBase) InitLane(
factory := mev.NewDefaultAuctionFactory(s.EncCfg.TxConfig.TxDecoder(), signer_extraction.NewDefaultAdapter())
matchHandler := factory.MatchHandler()
if matchAll {
matchHandler = func(tx sdk.Tx) bool {
matchHandler = func(ctx sdk.Context, tx sdk.Tx) bool {

Check warning on line 64 in lanes/mev/testutils/testutil.go

View workflow job for this annotation

GitHub Actions / golangci-lint

unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
return true
}
}
Expand Down

0 comments on commit d1dec20

Please sign in to comment.