Skip to content

Commit

Permalink
feat: ibc-hooks wrap error
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 committed Sep 1, 2023
1 parent 8438c9d commit faed2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/tokenfactory/keeper/before_send.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (h Hooks) BlockBeforeSend(ctx sdk.Context, from, to sdk.AccAddress, amount
func (k Keeper) callBeforeSendListener(ctx sdk.Context, from, to sdk.AccAddress, amount sdk.Coins, blockBeforeSend bool) (err error) {
defer func() {
if r := recover(); r != nil {
err = types.ErrTrackBeforeSendOutOfGas
err = errorsmod.Wrapf(types.ErrTrackBeforeSendOutOfGas, "%v", r)
}
}()

Expand Down

0 comments on commit faed2c3

Please sign in to comment.