From c1aa7010ed7dde5e2793bfaf7c4cabd70a12f2fc Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 16 Nov 2016 11:14:51 +0100 Subject: [PATCH] apps.wallet: fix GetPublicKey.address_n --- src/apps/wallet/layout_get_public_key.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/wallet/layout_get_public_key.py b/src/apps/wallet/layout_get_public_key.py index da7a4f330c..55ce65c714 100644 --- a/src/apps/wallet/layout_get_public_key.py +++ b/src/apps/wallet/layout_get_public_key.py @@ -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(