Skip to content

Commit 9871dfa

Browse files
committed
Updated naming, removed irrelevant parts
1 parent 1a5d18a commit 9871dfa

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

async_substrate_interface/utils/decoding.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,12 @@ def _bt_decode_to_dict_or_list(obj) -> Union[dict, list[dict]]:
5555

5656

5757
def _decode_scale_list_with_runtime(
58-
type_string: list[str],
59-
scale_bytes: list[bytes],
58+
type_strings: list[str],
59+
scale_bytes_list: list[bytes],
6060
runtime_registry,
6161
return_scale_obj: bool = False,
6262
):
63-
if scale_bytes == b"":
64-
return None
65-
if type_string == "scale_info::0": # Is an AccountId
66-
# Decode AccountId bytes to SS58 address
67-
return ss58_encode(scale_bytes, SS58_FORMAT)
68-
else:
69-
obj = decode_list(type_string, runtime_registry, scale_bytes)
63+
obj = decode_list(type_strings, runtime_registry, scale_bytes_list)
7064
if return_scale_obj:
7165
return [ScaleObj(x) for x in obj]
7266
else:

0 commit comments

Comments
 (0)