From c921bd802a8250ccbab5a1caa0dd0fc3a31c6efc Mon Sep 17 00:00:00 2001 From: slush0 Date: Wed, 28 May 2014 15:52:40 +0200 Subject: [PATCH] Fixed sign_message --- cmdtr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmdtr.py b/cmdtr.py index e9eb1726ac..50f5dd52cf 100755 --- a/cmdtr.py +++ b/cmdtr.py @@ -135,7 +135,8 @@ class Commands(object): args.pin_protection, args.label, 'english') def sign_message(self, args): - ret = self.client.sign_message(args.coin, args.n, args.message) + address_n = self.client.expand_path(args.n) + ret = self.client.sign_message(args.coin, address_n, args.message) output = { 'message': args.message, 'address': ret.address, @@ -230,7 +231,7 @@ class Commands(object): sign_message.arguments = ( (('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}), - (('n',), {'metavar': 'N', 'type': int, 'nargs': '+'}), + (('-n', '-address'), {'type': str}), (('message',), {'type': str}), )