diff --git a/jaklis.py b/jaklis.py index 65437e1..c5c397c 100755 --- a/jaklis.py +++ b/jaklis.py @@ -102,7 +102,7 @@ deleteoffer_cmd.add_argument('-i', '--id', help="Annonce cible à supprimer") # GVA usage pay_cmd.add_argument('-p', '--pubkey', help="Destinataire du paiement") pay_cmd.add_argument('-a', '--amount', type=float, help="Montant de la transaction") -pay_cmd.add_argument('-c', '--comment', default="", help="Commentaire de la transaction") +pay_cmd.add_argument('-c', '--comment', default="", help="Commentaire de la transaction", nargs='*') pay_cmd.add_argument('-m', '--mempool', action='store_true', help="Utilise les sources en Mempool") pay_cmd.add_argument('-v', '--verbose', action='store_true', help="Affiche le résultat JSON de la transaction") diff --git a/lib/gva.py b/lib/gva.py index 6d16405..c4f1346 100755 --- a/lib/gva.py +++ b/lib/gva.py @@ -39,6 +39,7 @@ class GvaApi(): #################### Payments #################### def pay(self, amount, comment, mempool, verbose): + comment = " ".join(comment) gva = Transaction(self.dunikey, self.node, self.destPubkey, amount, comment, mempool, verbose) gva.genDoc() gva.checkTXDoc()