From dc196be807056d8c57880f35bd7cc0113e853611 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 26 Apr 2025 16:23:45 -0500 Subject: [PATCH] Remove self-referential import (#2141) --- wallets/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/server.js b/wallets/server.js index 6c0c5927..529b70a6 100644 --- a/wallets/server.js +++ b/wallets/server.js @@ -12,7 +12,6 @@ import * as lnc from '@/wallets/lnc' import * as webln from '@/wallets/webln' import { walletLogger } from '@/api/resolvers/wallet' -import walletDefs from '@/wallets/server' import { parsePaymentRequest } from 'ln-service' import { toPositiveBigInt, toPositiveNumber, formatMsats, formatSats, msatsToSats } from '@/lib/format' import { PAID_ACTION_TERMINAL_STATES, WALLET_CREATE_INVOICE_TIMEOUT_MS } from '@/lib/constants' @@ -20,7 +19,8 @@ import { timeoutSignal, withTimeout } from '@/lib/time' import { canReceive } from './common' import wrapInvoice from './wrap' -export default [lnd, cln, lnAddr, lnbits, nwc, phoenixd, blink, lnc, webln] +const walletDefs = [lnd, cln, lnAddr, lnbits, nwc, phoenixd, blink, lnc, webln] +export default walletDefs const MAX_PENDING_INVOICES_PER_WALLET = 25