We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a18befc + efe5588 commit 1f3c5f4Copy full SHA for 1f3c5f4
async_substrate_interface/async_substrate.py
@@ -892,6 +892,8 @@ async def decode_scale(
892
Returns:
893
Decoded object
894
"""
895
+ if scale_bytes == b"":
896
+ return None
897
if type_string == "scale_info::0": # Is an AccountId
898
# Decode AccountId bytes to SS58 address
899
return ss58_encode(scale_bytes, SS58_FORMAT)
@@ -2230,7 +2232,7 @@ async def query_multi(
2230
2232
# Decode result for specified storage_key
2231
2233
storage_key = storage_key_map[change_storage_key]
2234
if change_data is None:
- change_data = b"\x00"
2235
+ change_data = b""
2236
else:
2237
change_data = bytes.fromhex(change_data[2:])
2238
result.append(
0 commit comments