mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
Fixed load_device_by_xprv
This commit is contained in:
parent
da6ce3acb8
commit
099cdd2578
@ -510,7 +510,7 @@ class ProtocolMixin(object):
|
|||||||
|
|
||||||
@field('message')
|
@field('message')
|
||||||
@expect(proto.Success)
|
@expect(proto.Success)
|
||||||
def load_device_by_xprv(self, xprv, pin, passphrase_protection, label):
|
def load_device_by_xprv(self, xprv, pin, passphrase_protection, label, language):
|
||||||
if self.features.initialized:
|
if self.features.initialized:
|
||||||
raise Exception("Device is initialized already. Call wipe_device() and try again.")
|
raise Exception("Device is initialized already. Call wipe_device() and try again.")
|
||||||
|
|
||||||
@ -547,7 +547,7 @@ class ProtocolMixin(object):
|
|||||||
resp = self.call(proto.LoadDevice(node=node,
|
resp = self.call(proto.LoadDevice(node=node,
|
||||||
pin=pin,
|
pin=pin,
|
||||||
passphrase_protection=passphrase_protection,
|
passphrase_protection=passphrase_protection,
|
||||||
language='english',
|
language=language,
|
||||||
label=label))
|
label=label))
|
||||||
self.init_device()
|
self.init_device()
|
||||||
return resp
|
return resp
|
||||||
|
Loading…
Reference in New Issue
Block a user