Skip to content

Commit

Permalink
refactor: ensure the underlying apps OnRecvPacket callback is invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
jtieri committed Sep 4, 2024
1 parent 3602bb8 commit 08a1ec5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ func (im IBCMiddleware) OnRecvPacket(
return newErrorAcknowledgement(fmt.Errorf("failed to construct override receiver: %w", err))
}

if err := im.receiveFunds(ctx, packet, data, overrideReceiver, relayer); err != nil {
logger.Error("packetForwardMiddleware OnRecvPacket error receiving packet", "error", err)
return newErrorAcknowledgement(fmt.Errorf("error receiving packet: %w", err))
}

// if this packet's token denom is already the base denom for some native token on this chain,
// we do not need to do any further composition of the denom before forwarding the packet
denomOnThisChain := data.Denom
Expand Down

0 comments on commit 08a1ec5

Please sign in to comment.