Browse Source

bugfix: signmessage expects 2 arguments. check for them.

283
Amir Taaki 13 years ago
parent
commit
fd8af94419
  1. 4
      electrum

4
electrum

@ -491,6 +491,10 @@ if __name__ == '__main__':
wallet.update_password(seed, password, new_password) wallet.update_password(seed, password, new_password)
elif cmd == 'signmessage': elif cmd == 'signmessage':
if len(args) < 3:
print_error("Error: Invalid usage of signmessage.")
print known_commands[cmd]
sys.exit(1)
address = args[1] address = args[1]
message = ' '.join(args[2:]) message = ' '.join(args[2:])
if len(args) > 3: if len(args) > 3:

Loading…
Cancel
Save