1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

fix ethereum_get_address for python3

This commit is contained in:
Pavol Rusnak 2017-07-11 19:37:25 +02:00
parent c7a2c72a75
commit ee5f53d4be
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -485,7 +485,7 @@ def decrypt_message(client, address, payload):
def ethereum_get_address(client, address, show_display): def ethereum_get_address(client, address, show_display):
address_n = client.expand_path(address) address_n = client.expand_path(address)
address = client.ethereum_get_address(address_n, show_display) address = client.ethereum_get_address(address_n, show_display)
return '0x%s' % binascii.hexlify(address) return '0x%s' % binascii.hexlify(str(address))
@cli.command(help='Sign (and optionally publish) Ethereum transaction. Use TO as destination address or set TO to "" for contract creation.') @cli.command(help='Sign (and optionally publish) Ethereum transaction. Use TO as destination address or set TO to "" for contract creation.')