From a38e7890999c50b7d6c4197e4513f802089f23ae Mon Sep 17 00:00:00 2001 From: nelisky Date: Wed, 6 Mar 2013 11:32:11 +0000 Subject: [PATCH] Typo in importprivkey, missing self --- lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/commands.py b/lib/commands.py index ec589b542..bf84e500f 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -186,8 +186,8 @@ class Commands: def importprivkey(self, sec): try: - addr = wallet.import_key(sec,self.password) - wallet.save() + addr = self.wallet.import_key(sec,self.password) + self.wallet.save() out = "Keypair imported: ", addr except BaseException as e: out = "Error: Keypair import failed: " + str(e)