Skip to content

Commit

Permalink
remove errors.join
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed May 2, 2024
1 parent df7deb1 commit 19181dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re
if mode == runTxModeReCheck {
// if the ante handler fails on recheck, we want to remove the tx from the mempool
if mempoolErr := app.mempool.Remove(tx); mempoolErr != nil {
return gInfo, nil, anteEvents, 0, errors.Join(err, mempoolErr)
return gInfo, nil, anteEvents, 0, fmt.Errorf("error: %w, mempool error: %w", err, mempoolErr)

Check failure on line 723 in baseapp/baseapp.go

View workflow job for this annotation

GitHub Actions / Analyze

fmt.Errorf call has more than one error-wrapping directive %w

Check failure on line 723 in baseapp/baseapp.go

View workflow job for this annotation

GitHub Actions / Analyze

fmt.Errorf call has more than one error-wrapping directive %w
}
}
return gInfo, nil, nil, 0, err
Expand Down

0 comments on commit 19181dd

Please sign in to comment.