From 703b2995ce749abe9426d89d441d98dfc8d41e44 Mon Sep 17 00:00:00 2001 From: "Peter D. Gray" Date: Fri, 30 Apr 2021 13:45:58 -0400 Subject: [PATCH] bugfix: testnet vs mainnet --- shared/export.py | 2 +- testing/test_export.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/export.py b/shared/export.py index 8a67c4b6..06080070 100644 --- a/shared/export.py +++ b/shared/export.py @@ -268,7 +268,7 @@ def generate_unchained_export(acct_num=0): # - no account numbers (at this level) from public_constants import AF_P2SH, AF_P2WSH_P2SH, AF_P2WSH - chain = chains.BitcoinMain + chain = chains.current_chain() todo = [ ( "m/45'", 'p2sh', AF_P2SH), # iff acct_num == 0 ( "m/48'/{coin}'/{acct_num}'/1'", 'p2sh_p2wsh', AF_P2WSH_P2SH ), diff --git a/testing/test_export.py b/testing/test_export.py index 1d564e10..cb6838ac 100644 --- a/testing/test_export.py +++ b/testing/test_export.py @@ -337,6 +337,7 @@ def test_export_unchained(dev, cap_menu, pick_menu_item, goto_home, cap_story, n node = BIP32Node.from_wallet_key(xpub) assert xpub == node.hwif(as_private=False) sk = root.subkey_for_path(obj[f'{k}_deriv'][2:] + '.pub') - assert node.chain_code() == sk.chain_code() + #assert node.chain_code() == sk.chain_code() + assert node.hwif() == sk.hwif() # EOF