aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-13 12:31:45 -0800
committerAdam Soltys <[email protected]>2026-02-13 12:31:45 -0800
commit6de76d3a76f8b91b0ffa88bf175bb821234e84bd (patch)
treef9c5b76f3fb0476692fe989ad0b521845ac5a339 /lib/invoices.ts
parent3cb6698cb4b53127ec6b192b2df8bd70017be361 (diff)
downloadcoinos-server-6de76d3a76f8b91b0ffa88bf175bb821234e84bd.tar.gz
coinos-server-6de76d3a76f8b91b0ffa88bf175bb821234e84bd.zip
send pending balance
Diffstat (limited to 'lib/invoices.ts')
-rw-r--r--lib/invoices.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index 71f95b8c..e6b6e146 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -69,7 +69,7 @@ export const generate = async ({ invoice, user }) => {
if (account.type === "ark") {
type = PaymentType.ark;
text = account.arkAddress;
- } else if (account.seed) {
+ } else if (account.seed || (account.pubkey && account.fingerprint)) {
type = PaymentType.bitcoin;
const nextIndex = account.nextIndex || 0;
const { address, path: hdpath } = deriveAddress(account.pubkey, account.fingerprint, nextIndex);