From 7c5de4d161e096648dba8ac54328d1568ae2d2e3 Mon Sep 17 00:00:00 2001 From: Phoenix Orlov Date: Tue, 18 Jun 2019 03:44:39 -0700 Subject: [PATCH] [faucet server] fix error message for transactions that exceeds hard limit, amount should be displayed in libras(not microlibras) --- docker/mint/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/mint/server.py b/docker/mint/server.py index c5258f11643b..da2cbf674381 100644 --- a/docker/mint/server.py +++ b/docker/mint/server.py @@ -60,7 +60,7 @@ def send_transaction(): return 'Bad amount', 400 if amount > MAX_MINT: - return 'Exceeded max mint amount of {}'.format(MAX_MINT), 400 + return 'Exceeded max mint amount of {}'.format(MAX_MINT / (10 ** 6)), 400 application.client.sendline("a m {} {}".format(address, amount / (10 ** 6))) application.client.expect("Mint request submitted", timeout=2)