Browse Source

passing wallet instance not needed anymore

master
m0mchil 12 years ago
parent
commit
d5f08d657f
  1. 2
      gui/qt/main_window.py
  2. 4
      plugins/trezor.py

2
gui/qt/main_window.py

@ -1058,7 +1058,7 @@ class ElectrumWindow(QMainWindow):
return return
# call hook to see if plugin needs gui interaction # call hook to see if plugin needs gui interaction
run_hook('send_tx', tx, self.wallet) run_hook('send_tx', tx)
# sign the tx # sign the tx
def sign_thread(): def sign_thread():

4
plugins/trezor.py

@ -71,9 +71,9 @@ class Plugin(BasePlugin):
wallet.create_accounts(None) wallet.create_accounts(None)
return wallet return wallet
def send_tx(self, tx, wallet): def send_tx(self, tx):
try: try:
wallet.sign_transaction(tx, None, None) self.wallet.sign_transaction(tx, None, None)
except Exception as e: except Exception as e:
tx.error = str(e) tx.error = str(e)

Loading…
Cancel
Save