mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-15 11:08:08 +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(
|
async def show_xpubs(
|
||||||
ctx: wire.Context, coin: CoinInfo, pubnodes: List[HDNodeType]
|
ctx: wire.Context, coin: CoinInfo, pubnodes: List[HDNodeType]
|
||||||
) -> bool:
|
) -> bool:
|
||||||
for i, x in enumerate(pubnodes):
|
for i, pubnode in enumerate(pubnodes):
|
||||||
cancel = "Next" if i < len(pubnodes) - 1 else "Address"
|
cancel = "Next" if i < len(pubnodes) - 1 else "Address"
|
||||||
node = bip32.HDNode(
|
node = bip32.HDNode(
|
||||||
depth=x.depth,
|
depth=pubnode.depth,
|
||||||
fingerprint=x.fingerprint,
|
fingerprint=pubnode.fingerprint,
|
||||||
child_num=x.child_num,
|
child_num=pubnode.child_num,
|
||||||
chain_code=x.chain_code,
|
chain_code=pubnode.chain_code,
|
||||||
public_key=x.public_key,
|
public_key=pubnode.public_key,
|
||||||
curve_name=coin.curve_name,
|
curve_name=coin.curve_name,
|
||||||
)
|
)
|
||||||
xpub = node.serialize_public(coin.xpub_magic)
|
xpub = node.serialize_public(coin.xpub_magic)
|
||||||
|
Loading…
Reference in New Issue
Block a user