From b561dbfc35ce1531b25bc57b1b47a290e2a93002 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Tue, 6 Aug 2024 06:09:26 -0500 Subject: [PATCH] patch: IBC module ordering to allow for ICS29 relaying --- app/keepers/keepers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 9840b0bcb..d2c26637d 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -680,7 +680,6 @@ func NewAppKeepers( // Create Transfer Stack var transferStack porttypes.IBCModule transferStack = transfer.NewIBCModule(appKeepers.TransferKeeper) - transferStack = ibcfee.NewIBCMiddleware(transferStack, appKeepers.IBCFeeKeeper) transferStack = ibc_hooks.NewIBCMiddleware(transferStack, &appKeepers.HooksICS4Wrapper) transferStack = packetforward.NewIBCMiddleware( transferStack, @@ -689,6 +688,8 @@ func NewAppKeepers( packetforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp, packetforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp, ) + // ibcfee must come after PFM since PFM does not understand IncentivizedAcknowlegements (ICS29) + transferStack = ibcfee.NewIBCMiddleware(transferStack, appKeepers.IBCFeeKeeper) // initialize ICA module with mock module as the authentication module on the controller side var icaControllerStack porttypes.IBCModule