From c91e7af02ad8e680d09ba54842e55b408692d20b Mon Sep 17 00:00:00 2001 From: MSalopek Date: Thu, 2 May 2024 17:57:50 +0200 Subject: [PATCH] fix!: change ack processing in provider middleware --- x/ccv/provider/ibc_middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ccv/provider/ibc_middleware.go b/x/ccv/provider/ibc_middleware.go index fb4d96890f..fa41d67175 100644 --- a/x/ccv/provider/ibc_middleware.go +++ b/x/ccv/provider/ibc_middleware.go @@ -120,7 +120,7 @@ func (im IBCMiddleware) OnRecvPacket( // we know that the IBC transfer succeeded. That entails // that the packet data is valid and can be safely // deserialized without checking errors. - if ack.Success() { + if ack == nil { // execute the middleware logic only if the sender is a consumer chain consumerID, err := im.keeper.IdentifyConsumerChainIDFromIBCPacket(ctx, packet) if err != nil {