Skip to content

Commit

Permalink
rm timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 23, 2024
1 parent da01fad commit 1d2b397
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,23 +301,14 @@ func (im CustomIBCFeeMiddleware) OnAcknowledgementPacket(
) error {
if im.keeper.IsFeeEnabled(ctx, packet.SourcePort, packet.SourceChannel) {
var ack ibcfeetypes.IncentivizedAcknowledgement
err := ibcfeetypes.ModuleCdc.UnmarshalJSON(acknowledgement, &ack)
if err != nil {
if err := ibcfeetypes.ModuleCdc.UnmarshalJSON(acknowledgement, &ack); err != nil {
return errors.Wrapf(err, "cannot unmarshal ICS-29 incentivized packet acknowledgement: %v", ack)
}
im.keeper.SetPayeeAddress(ctx, relayer.String(), ack.ForwardRelayerAddress, packet.SourceChannel)
}
return im.IBCMiddleware.OnAcknowledgementPacket(ctx, packet, acknowledgement, relayer)
}

func (im CustomIBCFeeMiddleware) OnTimeoutPacket(
ctx sdk.Context,
packet ibcchanneltypes.Packet,
relayer sdk.AccAddress,
) error {
return im.IBCMiddleware.OnTimeoutPacket(ctx, packet, relayer)
}

// App extends an ABCI application, but with most of its parameters exported.
// They are exported for convenience in creating helper functions, as object
// capabilities aren't needed for testing.
Expand Down

0 comments on commit 1d2b397

Please sign in to comment.