Skip to content

Commit

Permalink
fix!: change ack processing in provider middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed May 2, 2024
1 parent cae1e35 commit c7e5eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/ibc_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c7e5eca

Please sign in to comment.