Skip to content

Commit

Permalink
chore: upstream noble-assets/noble#350
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Apr 24, 2024
1 parent 28fc6c7 commit a2dbf3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/forwarding/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ func (m Middleware) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, re
}
}

receiver := sdk.MustAccAddressFromBech32(transferData.Receiver)
receiver, err := sdk.AccAddressFromBech32(transferData.Receiver)
if err != nil {
return m.app.OnRecvPacket(ctx, packet, relayer)
}

rawAccount := m.authKeeper.GetAccount(ctx, receiver)
if rawAccount == nil {
Expand Down

0 comments on commit a2dbf3f

Please sign in to comment.