From 1d2b397411746b0101d8b460ac3016babdbd23a1 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Wed, 23 Oct 2024 16:04:05 +0800 Subject: [PATCH] rm timeout --- app/app.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/app.go b/app/app.go index 7f94f3b790..0c198ef5ab 100644 --- a/app/app.go +++ b/app/app.go @@ -301,8 +301,7 @@ 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) @@ -310,14 +309,6 @@ func (im CustomIBCFeeMiddleware) OnAcknowledgementPacket( 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.