Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1357: Fix sendpayment without amount argument, BIP21 only

9d9035b43f Fix sendpayment without amount argument, BIP21 only (Kristaps Kaupe)

Pull request description:

  Fixes #1356. Bug was introduced with #1316.

Top commit has no ACKs.

Tree-SHA512: cc4be2c4e55720faa5a0ca834e6ff4b2b95dbcf5b96f7bc501e3fb0e94dcd14240c6bb3949068248206f5508f64d4cc2afe49344065cdc4d60edcb3ba01a41cc
master
Kristaps Kaupe 3 years ago
parent
commit
cd61051f82
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      scripts/sendpayment.py

2
scripts/sendpayment.py

@ -96,7 +96,7 @@ def main():
sweeping = True
destaddr = args[2]
mixdepth = options.mixdepth
if btc.is_bip21_uri(args[2]):
if len(args) > 2 and btc.is_bip21_uri(args[2]):
parsed = btc.decode_bip21_uri(args[2])
if 'amount' in parsed:
parser.error("Specify amount as a separate argument or amount in BIP21 URI, not both.")

Loading…
Cancel
Save