diff --git a/x/tokenfactory/blockibc_middleware.go b/x/tokenfactory/blockibc_middleware.go index d3797ed1..7477038b 100644 --- a/x/tokenfactory/blockibc_middleware.go +++ b/x/tokenfactory/blockibc_middleware.go @@ -101,6 +101,10 @@ func (im IBCMiddleware) OnRecvPacket( return im.app.OnRecvPacket(ctx, packet, relayer) } + if im.keeper.GetPaused(ctx).Paused { + return channeltypes.NewErrorAcknowledgement(types.ErrPaused.Error()) + } + _, found := im.keeper.GetBlacklisted(ctx, data.Receiver) if found { ackErr = sdkerrors.Wrapf(sdkerrors.ErrUnauthorized, "receiver address is blacklisted")