Put restore_wallet_class back in the derived classes
This commit is contained in:
@@ -1746,7 +1746,6 @@ class BIP32_HD_Wallet(BIP32_Wallet):
|
|||||||
class BIP44_Wallet(BIP32_HD_Wallet):
|
class BIP44_Wallet(BIP32_HD_Wallet):
|
||||||
root_derivation = "m/44'/0'"
|
root_derivation = "m/44'/0'"
|
||||||
wallet_type = 'bip44'
|
wallet_type = 'bip44'
|
||||||
restore_wallet_class = BIP44_Wallet
|
|
||||||
|
|
||||||
def can_sign_xpubkey(self, x_pubkey):
|
def can_sign_xpubkey(self, x_pubkey):
|
||||||
xpub, sequence = BIP32_Account.parse_xpubkey(x_pubkey)
|
xpub, sequence = BIP32_Account.parse_xpubkey(x_pubkey)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ except ImportError:
|
|||||||
class BTChipWallet(BIP44_Wallet):
|
class BTChipWallet(BIP44_Wallet):
|
||||||
wallet_type = 'btchip'
|
wallet_type = 'btchip'
|
||||||
device = 'Ledger'
|
device = 'Ledger'
|
||||||
|
restore_wallet_class = BIP44_Wallet
|
||||||
|
|
||||||
def __init__(self, storage):
|
def __init__(self, storage):
|
||||||
BIP44_Wallet.__init__(self, storage)
|
BIP44_Wallet.__init__(self, storage)
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ class TrezorCompatibleWallet(BIP44_Wallet):
|
|||||||
# - DEVICE_IDS
|
# - DEVICE_IDS
|
||||||
# - wallet_type
|
# - wallet_type
|
||||||
|
|
||||||
|
restore_wallet_class = BIP44_Wallet
|
||||||
|
|
||||||
def __init__(self, storage):
|
def __init__(self, storage):
|
||||||
BIP44_Wallet.__init__(self, storage)
|
BIP44_Wallet.__init__(self, storage)
|
||||||
# After timeout seconds we clear the device session
|
# After timeout seconds we clear the device session
|
||||||
|
|||||||
Reference in New Issue
Block a user