From eb641b0ed4ec75055d4212200c59e641e87213a7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 3 Jan 2024 02:09:19 +0000 Subject: fix bip21 urls --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 5a108e81..53ed2277 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -35,8 +35,8 @@ export const bip21 = (address, { amount, memo, tip, type }) => { let url = new URLSearchParams(); if (amount) { - url.append("amount", amount); - if (type === "liquid") url.append("asset", config.liquid.btc); + url.append("amount", btc(amount)); + if (type === "liquid") url.append("assetid", config.liquid.btc); } if (memo) url.append("memo", memo); -- cgit v1.2.3