From d5f08d657f5dda3d8f94e5cf1ac676db82a849cc Mon Sep 17 00:00:00 2001 From: m0mchil Date: Sun, 27 Jul 2014 14:57:23 +0300 Subject: [PATCH] passing wallet instance not needed anymore --- gui/qt/main_window.py | 2 +- plugins/trezor.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index bfdb6473..b5276620 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1058,7 +1058,7 @@ class ElectrumWindow(QMainWindow): return # call hook to see if plugin needs gui interaction - run_hook('send_tx', tx, self.wallet) + run_hook('send_tx', tx) # sign the tx def sign_thread(): diff --git a/plugins/trezor.py b/plugins/trezor.py index 7f9823e8..ecbdcbc0 100644 --- a/plugins/trezor.py +++ b/plugins/trezor.py @@ -71,9 +71,9 @@ class Plugin(BasePlugin): wallet.create_accounts(None) return wallet - def send_tx(self, tx, wallet): + def send_tx(self, tx): try: - wallet.sign_transaction(tx, None, None) + self.wallet.sign_transaction(tx, None, None) except Exception as e: tx.error = str(e)