diff --git a/lib/commands.py b/lib/commands.py index ec589b54..bf84e500 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)