1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 20:38:10 +00:00

ethereum: format amount already has int as an argument

This commit is contained in:
Tomas Susanka 2018-05-03 11:03:37 +02:00
parent 736b02394f
commit 0d56ca922a

View File

@ -51,8 +51,7 @@ def split_address(address):
return chunks(address, 17)
def format_ethereum_amount(value, token, chain_id, tx_type=None):
value = int.from_bytes(value, 'big')
def format_ethereum_amount(value: int, token, chain_id: int, tx_type=None):
if token:
suffix = token[2]
decimals = token[3]