diff --git a/electrum/wizard.py b/electrum/wizard.py index 2bcce8c95e93..184c9d095eb6 100644 --- a/electrum/wizard.py +++ b/electrum/wizard.py @@ -346,7 +346,8 @@ def keystore_from_data(self, data): elif data['seed_variant'] == 'bip39': root_seed = keystore.bip39_to_seed(data['seed'], data['seed_extra_words']) derivation = normalize_bip32_derivation(data['derivation_path']) - k = keystore.from_bip43_rootseed(root_seed, derivation, xtype=script_type) + script = data['script_type'] if data['script_type'] != 'p2pkh' else 'standard' + k = keystore.from_bip43_rootseed(root_seed, derivation, xtype=script) k.add_seed(data['seed']) k.passphrase = data['seed_extra_words'] return k