fix(core): rename fw_or_type to image_type in keyctl-proxy to avoid confusion

part 2

somehow I did miss 3 more occurences
pull/1729/head
Pavol Rusnak 3 years ago
parent 0d251fc01a
commit 9a9b0eb052
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -30,8 +30,8 @@ PATH = "10018h/{}h"
TREZOR = None
def make_commit(fw_or_type, digest, public_keys):
path = PATH.format(fw_or_type.BIP32_INDEX)
def make_commit(image_type, digest, public_keys):
path = PATH.format(image_type.BIP32_INDEX)
address_n = parse_path(path)
# device information - show only first time
@ -42,7 +42,7 @@ def make_commit(fw_or_type, digest, public_keys):
while True:
# signing information - repeat every time
click.echo("Commiting to {} hash:".format(click.style(fw_or_type.NAME, bold=True)))
click.echo("Commiting to {} hash:".format(click.style(image_type.NAME, bold=True)))
for partid in range(4):
digest_part = digest[partid * 8 : (partid + 1) * 8]
color = "red" if partid % 2 else "cyan"

Loading…
Cancel
Save