convert address to str in sign_message; update tabs after import
This commit is contained in:
@@ -1284,7 +1284,7 @@ class ElectrumWindow(QMainWindow):
|
|||||||
password = None
|
password = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
signature = self.wallet.sign_message(sign_address.text(), str(sign_message.toPlainText()), password)
|
signature = self.wallet.sign_message(str(sign_address.text()), str(sign_message.toPlainText()), password)
|
||||||
sign_signature.setText(signature)
|
sign_signature.setText(signature)
|
||||||
except BaseException, e:
|
except BaseException, e:
|
||||||
self.show_message(str(e))
|
self.show_message(str(e))
|
||||||
@@ -1559,6 +1559,8 @@ class ElectrumWindow(QMainWindow):
|
|||||||
QMessageBox.critical(None, "Unable to import key", "error")
|
QMessageBox.critical(None, "Unable to import key", "error")
|
||||||
else:
|
else:
|
||||||
QMessageBox.information(None, "Key imported", addr)
|
QMessageBox.information(None, "Key imported", addr)
|
||||||
|
self.update_receive_tab()
|
||||||
|
self.update_history_tab()
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
QMessageBox.critical(None, "Unable to import key", str(e))
|
QMessageBox.critical(None, "Unable to import key", str(e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user