1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

Added coin_type to sign_message

This commit is contained in:
slush0 2014-02-21 02:32:37 +01:00
parent f6845089d5
commit 80aabfaa0f

3
cmd.py
View File

@ -135,7 +135,7 @@ class Commands(object):
args.pin_protection, args.label, 'english')
def sign_message(self, args):
ret = self.client.sign_message(args.n, args.message)
ret = self.client.sign_message(args.coin, args.n, args.message)
output = {
'message': args.message,
'address': ret.address,
@ -226,6 +226,7 @@ class Commands(object):
)
sign_message.arguments = (
(('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}),
(('n',), {'metavar': 'N', 'type': int, 'nargs': '+'}),
(('message',), {'type': str}),
)