From c504ccd61a221d50af07696460f582c39b343daf Mon Sep 17 00:00:00 2001 From: nelisky Date: Wed, 6 Mar 2013 11:40:13 +0000 Subject: [PATCH] Lack of self was a little more widespread --- lib/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index bf84e500f..c8ac4ae1d 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -124,7 +124,7 @@ class Commands: def sendrawtransaction(self, raw): tx = Transaction(raw) - r, h = wallet.sendtx( tx ) + r, h = self.wallet.sendtx( tx ) return h def createmultisig(self, num, pubkeys): @@ -170,7 +170,7 @@ class Commands: else: c = u = 0 for addr in addresses: - cc, uu = wallet.get_addr_balance(addr) + cc, uu = self.wallet.get_addr_balance(addr) c += cc u += uu @@ -243,7 +243,7 @@ class Commands: def payto(self, to_address, amount, fee = None, change_addr = None, from_addr = None): tx = self._mktx(to_address, amount, fee, change_addr, from_addr) - r, h = wallet.sendtx( tx ) + r, h = self.wallet.sendtx( tx ) return h