bugfix: signmessage expects 2 arguments. check for them.
This commit is contained in:
parent
e6965ef32c
commit
fd8af94419
4
electrum
4
electrum
|
@ -491,6 +491,10 @@ if __name__ == '__main__':
|
|||
wallet.update_password(seed, password, new_password)
|
||||
|
||||
elif cmd == 'signmessage':
|
||||
if len(args) < 3:
|
||||
print_error("Error: Invalid usage of signmessage.")
|
||||
print known_commands[cmd]
|
||||
sys.exit(1)
|
||||
address = args[1]
|
||||
message = ' '.join(args[2:])
|
||||
if len(args) > 3:
|
||||
|
|
Loading…
Reference in New Issue