From b9e5a4cf19b61b4e9aa0b4ebea3b6797d12e89eb Mon Sep 17 00:00:00 2001 From: Tomas Krnak Date: Thu, 17 Nov 2022 13:56:47 +0700 Subject: [PATCH] fixup! feat(core): add Zcash shielded transactions --- core/src/apps/zcash/unified.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/apps/zcash/unified.py b/core/src/apps/zcash/unified.py index 3ff9890097..954493ba60 100644 --- a/core/src/apps/zcash/unified.py +++ b/core/src/apps/zcash/unified.py @@ -107,11 +107,7 @@ def encode(receivers: dict[Typecode, bytes], hrp: str) -> str: w = empty_bytearray(length) - # receivers in ascending order - receivers_list = list(receivers.items()) - receivers_list.sort() - - for (typecode, raw_bytes) in receivers_list: + for typecode, raw_bytes in sorted(receivers.items()): length = len(raw_bytes) write_compact_size(w, typecode) write_compact_size(w, length)