From a2dbf3f4242bf0d155701f2f58f39b2ebc6667de Mon Sep 17 00:00:00 2001 From: John Letey Date: Wed, 24 Apr 2024 10:00:00 +0100 Subject: [PATCH] chore: upstream noble-assets/noble#350 --- x/forwarding/middleware.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {