Fix #775, provide wtype to get_wallet_cls

This commit is contained in:
Nicolas Kuttler 2021-02-09 19:06:57 +01:00
parent e67d87f5b5
commit 67791ed3a0

View file

@ -9,7 +9,8 @@ from pyaes import AESModeOfOperationCBC, Decrypter
from jmbase import JM_APP_NAME
from jmclient import Storage, load_program_config, BTCEngine
from jmclient.wallet_utils import get_password, get_wallet_cls,\
cli_get_wallet_passphrase_check, get_wallet_path
cli_get_wallet_passphrase_check, get_wallet_path, \
get_configured_wallet_type
class ConvertException(Exception):
@ -75,7 +76,7 @@ def new_wallet_from_data(data, file_name):
return False
storage = Storage(file_name, create=True, password=new_pw)
wallet_cls = get_wallet_cls()
wallet_cls = get_wallet_cls(wtype=get_configured_wallet_type(False))
kwdata = {
'entropy': data['entropy'],