From 812399f51db43ea1c6602d5dac53b6dbd4910d96 Mon Sep 17 00:00:00 2001 From: Juraj Variny Date: Wed, 4 Nov 2015 19:07:50 +0100 Subject: [PATCH] Fix 'need more than 2 values to unpack' error. --- gui/stdio.py | 2 +- gui/text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/stdio.py b/gui/stdio.py index 3d9b56dfc..e338ba96c 100644 --- a/gui/stdio.py +++ b/gui/stdio.py @@ -201,7 +201,7 @@ class ElectrumGui: if c == "n": return try: - tx = self.wallet.mktx( [(self.str_recipient, amount)], password, self.config, fee) + tx = self.wallet.mktx( [("address", self.str_recipient, amount)], password, self.config, fee) except Exception as e: print(str(e)) return diff --git a/gui/text.py b/gui/text.py index e25127bf6..f8c68daec 100644 --- a/gui/text.py +++ b/gui/text.py @@ -314,7 +314,7 @@ class ElectrumGui: password = None try: - tx = self.wallet.mktx( [(self.str_recipient, amount)], password, self.config, fee) + tx = self.wallet.mktx( [("address", self.str_recipient, amount)], password, self.config, fee) except Exception as e: self.show_message(str(e)) return