mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
Fixed sign_message
This commit is contained in:
parent
83c93ba3a0
commit
c921bd802a
5
cmdtr.py
5
cmdtr.py
@ -135,7 +135,8 @@ class Commands(object):
|
|||||||
args.pin_protection, args.label, 'english')
|
args.pin_protection, args.label, 'english')
|
||||||
|
|
||||||
def sign_message(self, args):
|
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 = {
|
output = {
|
||||||
'message': args.message,
|
'message': args.message,
|
||||||
'address': ret.address,
|
'address': ret.address,
|
||||||
@ -230,7 +231,7 @@ class Commands(object):
|
|||||||
|
|
||||||
sign_message.arguments = (
|
sign_message.arguments = (
|
||||||
(('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}),
|
(('-c', '--coin'), {'type': str, 'default': 'Bitcoin'}),
|
||||||
(('n',), {'metavar': 'N', 'type': int, 'nargs': '+'}),
|
(('-n', '-address'), {'type': str}),
|
||||||
(('message',), {'type': str}),
|
(('message',), {'type': str}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user