From 080459cd21bb58b8309d66d862aea315f439bf8d Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Sun, 8 Dec 2024 19:37:56 +0100 Subject: [PATCH] Fix lud-18 validation imports (#1690) * fix lud18PayerDataSchema import * fix validateSchema import --- pages/api/lnurlp/[username]/pay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/api/lnurlp/[username]/pay.js b/pages/api/lnurlp/[username]/pay.js index d47f8365..fc7e2122 100644 --- a/pages/api/lnurlp/[username]/pay.js +++ b/pages/api/lnurlp/[username]/pay.js @@ -4,9 +4,10 @@ import { lnurlPayDescriptionHashForUser, lnurlPayMetadataString, lnurlPayDescrip import { schnorr } from '@noble/curves/secp256k1' import { createHash } from 'crypto' import { LNURLP_COMMENT_MAX_LENGTH, MAX_INVOICE_DESCRIPTION_LENGTH } from '@/lib/constants' -import { validateSchema, lud18PayerDataSchema, toPositiveBigInt } from '@/lib/format' +import { toPositiveBigInt } from '@/lib/format' import assertGofacYourself from '@/api/resolvers/ofac' import performPaidAction from '@/api/paidAction' +import { validateSchema, lud18PayerDataSchema } from '@/lib/validate' export default async ({ query: { username, amount, nostr, comment, payerdata: payerData }, headers }, res) => { const user = await models.user.findUnique({ where: { name: username } })