Skip to content

Commit

Permalink
fix script_type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fujicoin committed Nov 12, 2023
1 parent e806050 commit 7a860aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electrum/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a860aa

Please sign in to comment.