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:
parent
736b02394f
commit
0d56ca922a
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user