hardware wallets: create base class for HW Clients. add some type hints
This commit is contained in:
@@ -16,7 +16,7 @@ from electrum.util import bfh, bh2u, versiontuple, UserFacingException
|
||||
from electrum.base_wizard import ScriptTypeNotSupported
|
||||
from electrum.logging import get_logger
|
||||
|
||||
from ..hw_wallet import HW_PluginBase
|
||||
from ..hw_wallet import HW_PluginBase, HardwareClientBase
|
||||
from ..hw_wallet.plugin import is_any_tx_output_on_change_branch
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def test_pin_unlocked(func):
|
||||
return catch_exception
|
||||
|
||||
|
||||
class Ledger_Client():
|
||||
class Ledger_Client(HardwareClientBase):
|
||||
def __init__(self, hidDevice):
|
||||
self.dongleObject = btchip(hidDevice)
|
||||
self.preflightDone = False
|
||||
|
||||
Reference in New Issue
Block a user