From 43e694ca9e6d9041a01632ccadf05d18e24f8375 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:43:05 +0200 Subject: [PATCH] cosmetic updates --- cashu/wallet/cli/cli.py | 2 +- cashu/wallet/wallet.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cashu/wallet/cli/cli.py b/cashu/wallet/cli/cli.py index e55c4870..819fdd8e 100644 --- a/cashu/wallet/cli/cli.py +++ b/cashu/wallet/cli/cli.py @@ -170,7 +170,7 @@ async def pay(ctx: Context, invoice: str, yes: bool): quote = await wallet.quote_lightning(invoice) if not yes: click.confirm( - f"Pay {quote.amount} cents?", + f"Pay {quote.amount/100:.2f} USD?", abort=True, default=True, ) diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index b9b89bee..df28cfec 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -767,7 +767,6 @@ async def quote_lightning(self, invoice: str) -> PaymentQuote: resp = self.s.get(self.url + "/melt", params={"invoice": invoice}) self.raise_on_error(resp) return_dict = resp.json() - print(return_dict) quote = PaymentQuote(id=return_dict[0], amount=return_dict[1]) return quote