From 84954b0778c3406ab2e00470da7e4d05ce75721f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 21 May 2014 11:36:37 +0200 Subject: [PATCH] update calls to is_complete() method. fixes #693 --- gui/qt/transaction_dialog.py | 4 ++-- lib/transaction.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py index eb5d3c8fc..77110f7c7 100644 --- a/gui/qt/transaction_dialog.py +++ b/gui/qt/transaction_dialog.py @@ -106,7 +106,7 @@ class TxDialog(QDialog): def save(self): - name = 'signed_%s.txn' % (self.tx.hash()[0:8]) if self.tx.is_complete else 'unsigned.txn' + name = 'signed_%s.txn' % (self.tx.hash()[0:8]) if self.tx.is_complete() else 'unsigned.txn' fileName = self.parent.getSaveFileName(_("Select where to save your signed transaction"), name, "*.txn") if fileName: with open(fileName, "w+") as f: @@ -119,7 +119,7 @@ class TxDialog(QDialog): is_relevant, is_mine, v, fee = self.wallet.get_tx_value(self.tx) - if self.tx.is_complete: + if self.tx.is_complete(): status = _("Status: Signed") self.sign_button.hide() tx_hash = self.tx.hash() diff --git a/lib/transaction.py b/lib/transaction.py index e6c3c7039..36638b950 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -378,7 +378,7 @@ def get_address_from_output_script(bytes): class Transaction: - def __init__(self, raw, is_complete = True): + def __init__(self, raw): self.raw = raw self.deserialize() self.inputs = self.d['inputs']