1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

Fixed sign_message

This commit is contained in:
slush0 2014-05-28 15:52:40 +02:00
parent 83c93ba3a0
commit c921bd802a

View File

@ -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}),
)