mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
core: fix typo in get_address
This commit is contained in:
parent
ddea567ecc
commit
0f1e30b235
@ -17,14 +17,14 @@ if False:
|
||||
async def show_xpubs(
|
||||
ctx: wire.Context, coin: CoinInfo, pubnodes: List[HDNodeType]
|
||||
) -> bool:
|
||||
for i, x in enumerate(pubnodes):
|
||||
for i, pubnode in enumerate(pubnodes):
|
||||
cancel = "Next" if i < len(pubnodes) - 1 else "Address"
|
||||
node = bip32.HDNode(
|
||||
depth=x.depth,
|
||||
fingerprint=x.fingerprint,
|
||||
child_num=x.child_num,
|
||||
chain_code=x.chain_code,
|
||||
public_key=x.public_key,
|
||||
depth=pubnode.depth,
|
||||
fingerprint=pubnode.fingerprint,
|
||||
child_num=pubnode.child_num,
|
||||
chain_code=pubnode.chain_code,
|
||||
public_key=pubnode.public_key,
|
||||
curve_name=coin.curve_name,
|
||||
)
|
||||
xpub = node.serialize_public(coin.xpub_magic)
|
||||
|
Loading…
Reference in New Issue
Block a user