Skip to content

Commit

Permalink
change fmt.Errorf to errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed May 8, 2024
1 parent 9b9adbe commit b795527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/ante/ante_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ante_test

import (
"fmt"
"errors"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -349,7 +349,7 @@ func (suite *AnteTestSuite) TestAnteDecorator() {
suite.chainB.GetSimApp().IBCMockModule.IBCApp.OnRecvPacket = func(
ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress,
) exported.Acknowledgement {
panic(fmt.Errorf("failed OnRecvPacket mock callback"))
panic(errors.New("failed OnRecvPacket mock callback"))
}

// the RecvPacket message has not been submitted to the chain yet, so it will succeed
Expand Down

0 comments on commit b795527

Please sign in to comment.