diff options
| author | Adam Soltys <[email protected]> | 2024-01-03 02:09:19 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-03 02:09:19 +0000 |
| commit | eb641b0ed4ec75055d4212200c59e641e87213a7 (patch) | |
| tree | da3e013120dfd9211018c4f629377c7dd87752ef | |
| parent | 057707f37a28d972bc9b2e8ee3f32f67b2fdd5aa (diff) | |
| download | coinos-server-eb641b0ed4ec75055d4212200c59e641e87213a7.tar.gz coinos-server-eb641b0ed4ec75055d4212200c59e641e87213a7.zip | |
fix bip21 urls
| -rw-r--r-- | lib/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
