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:
parent
384bde3efc
commit
c1aa7010ed
@ -3,11 +3,13 @@ from ..common import seed
|
|||||||
|
|
||||||
|
|
||||||
@unimport
|
@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.HDNodeType import HDNodeType
|
||||||
from trezor.messages.PublicKey import PublicKey
|
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_xpub = node.serialize_public()
|
||||||
node_type = HDNodeType(
|
node_type = HDNodeType(
|
||||||
|
Loading…
Reference in New Issue
Block a user