From 52ba16da3d3df74333b3831397534a67bdd95c0b Mon Sep 17 00:00:00 2001 From: bolkin Date: Fri, 23 May 2014 04:18:32 +0000 Subject: [PATCH] fix console importprivkey error --- electrum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum b/electrum index 26a719b12..76a000bdd 100755 --- a/electrum +++ b/electrum @@ -338,7 +338,7 @@ if __name__ == '__main__': if cmd.name == 'importprivkey': # See if they specificed a key on the cmd line, if not prompt if len(args) == 1: - args[1] = prompt_password('Enter PrivateKey (will not echo):', False) + args.append(prompt_password('Enter PrivateKey (will not echo):', False)) elif cmd.name == 'signrawtransaction': args = [cmd, args[1], json.loads(args[2]) if len(args) > 2 else [], json.loads(args[3]) if len(args) > 3 else []]