Skip to content

Commit

Permalink
[faucet server] fix error message
Browse files Browse the repository at this point in the history
for transactions that exceeds hard limit, amount should be displayed in libras(not microlibras)
  • Loading branch information
Phoenix Orlov authored and calibra-opensource committed Jun 18, 2019
1 parent 1b26f9f commit 7c5de4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/mint/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c5de4d

Please sign in to comment.