From 6d5346115ed352500d26986dafa8570efd54f319 Mon Sep 17 00:00:00 2001 From: Alfonso Perez Date: Sun, 2 May 2021 15:39:35 -0700 Subject: [PATCH 1/2] clarify units of amount and fees --- chia/cmds/wallet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chia/cmds/wallet.py b/chia/cmds/wallet.py index 49435297ed3f..990b9c72728d 100644 --- a/chia/cmds/wallet.py +++ b/chia/cmds/wallet.py @@ -64,11 +64,11 @@ def get_transactions_cmd(wallet_rpc_port: int, fingerprint: int, id: int, offset ) @click.option("-f", "--fingerprint", help="Set the fingerprint to specify which wallet to use", type=int) @click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True) -@click.option("-a", "--amount", help="How much chia to send, in TXCH/XCH", type=str, required=True) +@click.option("-a", "--amount", help="How much chia to send, in XCH", type=str, required=True) @click.option( - "-m", "--fee", help="Set the fees for the transaction", type=str, default="0", show_default=True, required=True + "-m", "--fee", help="Set the fees for the transaction, in XCH", type=str, default="0", show_default=True, required=True ) -@click.option("-t", "--address", help="Address to send the TXCH/XCH", type=str, required=True) +@click.option("-t", "--address", help="Address to send the XCH", type=str, required=True) def send_cmd(wallet_rpc_port: int, fingerprint: int, id: int, amount: str, fee: str, address: str) -> None: extra_params = {"id": id, "amount": amount, "fee": fee, "address": address} import asyncio From df21251681fb69bcf77cf7491f8c67861fc7c3a9 Mon Sep 17 00:00:00 2001 From: Alfonso Perez Date: Sun, 2 May 2021 15:49:30 -0700 Subject: [PATCH 2/2] format code to pass linting rules --- chia/cmds/wallet.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/chia/cmds/wallet.py b/chia/cmds/wallet.py index 990b9c72728d..fd16c18ca17d 100644 --- a/chia/cmds/wallet.py +++ b/chia/cmds/wallet.py @@ -66,7 +66,13 @@ def get_transactions_cmd(wallet_rpc_port: int, fingerprint: int, id: int, offset @click.option("-i", "--id", help="Id of the wallet to use", type=int, default=1, show_default=True, required=True) @click.option("-a", "--amount", help="How much chia to send, in XCH", type=str, required=True) @click.option( - "-m", "--fee", help="Set the fees for the transaction, in XCH", type=str, default="0", show_default=True, required=True + "-m", + "--fee", + help="Set the fees for the transaction, in XCH", + type=str, + default="0", + show_default=True, + required=True, ) @click.option("-t", "--address", help="Address to send the XCH", type=str, required=True) def send_cmd(wallet_rpc_port: int, fingerprint: int, id: int, amount: str, fee: str, address: str) -> None: