File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
async_substrate_interface/utils Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -55,18 +55,12 @@ def _bt_decode_to_dict_or_list(obj) -> Union[dict, list[dict]]:
5555
5656
5757def _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 :
You can’t perform that action at this time.
0 commit comments