Merge pull request #8041 from bigspider/app-bitcoin-new
Modify Ledger plugin to support the new bitcoin app v2.1.0
This commit is contained in:
@@ -2,6 +2,6 @@ from electrum.i18n import _
|
||||
|
||||
fullname = 'Ledger Wallet'
|
||||
description = 'Provides support for Ledger hardware wallet'
|
||||
requires = [('btchip', 'github.com/ledgerhq/btchip-python')]
|
||||
requires = [('ledger_bitcoin', 'github.com/LedgerHQ/app-bitcoin-new')]
|
||||
registers_keystore = ('hardware', 'ledger', _("Ledger wallet"))
|
||||
available_for = ['qt', 'cmdline']
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,7 @@ class Plugin(LedgerPlugin, QtPluginBase):
|
||||
keystore = wallet.get_keystore()
|
||||
if type(keystore) == self.keystore_class and len(addrs) == 1:
|
||||
def show_address():
|
||||
keystore.thread.add(partial(self.show_address, wallet, addrs[0]))
|
||||
keystore.thread.add(partial(self.show_address, wallet, addrs[0], keystore=keystore))
|
||||
menu.addAction(_("Show on Ledger"), show_address)
|
||||
|
||||
class Ledger_Handler(QtHandlerBase):
|
||||
|
||||
Reference in New Issue
Block a user