diff --git a/x/forwarding/middleware.go b/x/forwarding/middleware.go index 81969e4..be81ba5 100644 --- a/x/forwarding/middleware.go +++ b/x/forwarding/middleware.go @@ -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 {