From 70c6efccdf08735fcc45bc3b168ad6d1239d6def Mon Sep 17 00:00:00 2001 From: Michael Flaxman Date: Sun, 15 Nov 2020 18:39:17 -0600 Subject: [PATCH] bugfix --- multiwallet_gui/seedpicker.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/multiwallet_gui/seedpicker.py b/multiwallet_gui/seedpicker.py index 1b88f03..a5276a9 100644 --- a/multiwallet_gui/seedpicker.py +++ b/multiwallet_gui/seedpicker.py @@ -143,15 +143,14 @@ def process_submit(self): informative_text=err_str, ) - IS_TESTNET = True # TESTNET ONLY FOR NOW - if self.mainnet_button.isChecked(): + IS_TESTNET = self.testnet_button.isChecked() + if IS_TESTNET: + PATH = "m/48'/1'/0'/2'" + SLIP132_VERSION_BYTES = "02575483" + else: # Mainnet PATH = "m/48'/0'/0'/2'" SLIP132_VERSION_BYTES = "02aa7ed3" - else: - # Testent - PATH = "m/48'/1'/0'/2'" - SLIP132_VERSION_BYTES = "02575483" last_word = valid_checksum_words[0] hd_priv = HDPrivateKey.from_mnemonic(first_words + " " + last_word)