Skip to content

Commit

Permalink
Remove wasm times from our antehandler checkTx + recheckTx stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed May 24, 2024
1 parent 815d4bf commit 0ed3f01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/ibc-hooks/wasm_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ func (h WasmHooks) OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdk.Con
if err != nil {
return err
}
if ctx.IsCheckTx() || ctx.IsReCheckTx() {
return nil
}

if !h.ProperlyConfigured() {
// Not configured. Return from the underlying implementation
Expand Down
3 changes: 3 additions & 0 deletions x/ibc-rate-limit/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ func (im *IBCModule) OnAcknowledgementPacket(
acknowledgement []byte,
relayer sdk.AccAddress,
) error {
if ctx.IsCheckTx() || ctx.IsReCheckTx() {
return im.app.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer)
}
var ack channeltypes.Acknowledgement
if err := json.Unmarshal(acknowledgement, &ack); err != nil {
return errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal ICS-20 transfer packet acknowledgement: %v", err)
Expand Down

0 comments on commit 0ed3f01

Please sign in to comment.