1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

apps.wallet: fix GetPublicKey.address_n

This commit is contained in:
Jan Pochyla 2016-11-16 11:14:51 +01:00
parent 384bde3efc
commit c1aa7010ed

View File

@ -3,11 +3,13 @@ from ..common import seed
@unimport
async def layout_get_public_key(message, session_id):
async def layout_get_public_key(msg, session_id):
from trezor.messages.HDNodeType import HDNodeType
from trezor.messages.PublicKey import PublicKey
node = await seed.get_node(session_id, message.address_n)
address_n = getattr(msg, 'address_n', ())
node = await seed.get_node(session_id, address_n)
node_xpub = node.serialize_public()
node_type = HDNodeType(