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]]:
55
55
56
56
57
57
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 ],
60
60
runtime_registry ,
61
61
return_scale_obj : bool = False ,
62
62
):
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 )
70
64
if return_scale_obj :
71
65
return [ScaleObj (x ) for x in obj ]
72
66
else :
You can’t perform that action at this time.
0 commit comments