diff options
Diffstat (limited to 'src/features/gifts-wallet.js')
| -rw-r--r-- | src/features/gifts-wallet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/gifts-wallet.js b/src/features/gifts-wallet.js index 6776788..824ddc0 100644 --- a/src/features/gifts-wallet.js +++ b/src/features/gifts-wallet.js @@ -323,7 +323,7 @@ export function installGiftWallet(wallet) { if (change >= DUST) { eAmount = gift; } // change would be dust: drop it into the fee, single output, honour the // requested amount (fee = sum - gift, which must clear a 1-output fee). - else { eAmount = gift; change = 0n; if (sum - gift < fundFee(1)) throw new Error('Not enough to cover the funding fee — try a smaller gift.'); } + else { eAmount = gift; change = 0n; if (sum - gift < fundFee(1)) throw new Error('Not enough to cover the funding fee. Try a smaller gift.'); } } if (eAmount < DUST) throw new Error('Gift amount is too small.'); // the throwaway key that holds the gift until the claimer sweeps it |
