Use plain Ḡ1 now, no cents anymore

This commit is contained in:
poka 2020-11-27 06:04:11 +01:00
parent 0cbc429f4c
commit 6dd6c65388
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class Transaction:
def __init__(self, dunikey, node, recipient, amount, comment='', useMempool=False, verbose=False):
self.dunikey = dunikey
self.recipient = recipient
self.amount = int(amount)
self.amount = int(amount*100)
self.comment = comment
self.issuer = get_privkey(dunikey, "pubsec").pubkey
self.useMempool = useMempool

2
pay.py
View File

@ -23,7 +23,7 @@ if not dunikey or not node:
# Parse arguments
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--destinataire', help="Destinataire du paiement")
parser.add_argument('-m', '--montant', type=int, help="Montant de la transaction")
parser.add_argument('-m', '--montant', type=float, help="Montant de la transaction")
parser.add_argument('-c', '--commentaire', default="", help="Commentaire de la transaction")
parser.add_argument('-n', '--node', help="Sélection d'un noeud Duniter à utiliser")
parser.add_argument('-k', '--key', help="Chemin vers notre fichier de trousseau (PubSec)")