From f4041f132569b170e82b0eb635e44cabb20d65d3 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 21 Jul 2020 10:45:59 -0700 Subject: [PATCH] use as_wownero func to fix incoming amount --- tipbot/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/commands.py b/tipbot/commands.py index 7c160ac..e1e389d 100644 --- a/tipbot/commands.py +++ b/tipbot/commands.py @@ -159,7 +159,7 @@ def send(update, context): # validate amount try: - amount = Decimal(context.args[1]) + amount = wownero.as_wownero(context.args[1]) except: update.message.reply_text(f'Bad Wownero amount specified; "{context.args[1]}" is not a valid number.') return False