Skip to content

Commit

Permalink
pfm can return nil; transfer_middleware should fall through if this i…
Browse files Browse the repository at this point in the history
…s the case; fixes #1695
  • Loading branch information
Joe Bowman committed Jul 12, 2024
1 parent c04a5dc commit 2cd6952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/interchainstaking/transfer_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func (im TransferMiddleware) OnRecvPacket(
}

ack := im.app.OnRecvPacket(ctx, packet, relayer)
if ack == nil {
// transfer middleware can return nil
return nil
}
if ack.Success() {
_, found := im.keeper.GetZoneForWithdrawalAccount(ctx, data.Sender)
if found {
Expand Down

0 comments on commit 2cd6952

Please sign in to comment.