forked from axiom-team/jaklis
fix GVA comment transaction sentence
This commit is contained in:
parent
60bae39fba
commit
8690615335
|
@ -102,7 +102,7 @@ deleteoffer_cmd.add_argument('-i', '--id', help="Annonce cible à supprimer")
|
||||||
# GVA usage
|
# GVA usage
|
||||||
pay_cmd.add_argument('-p', '--pubkey', help="Destinataire du paiement")
|
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('-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('-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")
|
pay_cmd.add_argument('-v', '--verbose', action='store_true', help="Affiche le résultat JSON de la transaction")
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ class GvaApi():
|
||||||
#################### Payments ####################
|
#################### Payments ####################
|
||||||
|
|
||||||
def pay(self, amount, comment, mempool, verbose):
|
def pay(self, amount, comment, mempool, verbose):
|
||||||
|
comment = " ".join(comment)
|
||||||
gva = Transaction(self.dunikey, self.node, self.destPubkey, amount, comment, mempool, verbose)
|
gva = Transaction(self.dunikey, self.node, self.destPubkey, amount, comment, mempool, verbose)
|
||||||
gva.genDoc()
|
gva.genDoc()
|
||||||
gva.checkTXDoc()
|
gva.checkTXDoc()
|
||||||
|
|
Loading…
Reference in New Issue