File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2574,16 +2574,12 @@ async def query_multi(
25742574 for change_storage_key , change_data in result_group ["changes" ]:
25752575 # Decode result for specified storage_key
25762576 storage_key = storage_key_map [change_storage_key ]
2577- if change_data is None :
2578- change_data = b""
2579- else :
2580- change_data = bytes .fromhex (change_data [2 :])
2577+ if change_data is not None :
2578+ change_data = ScaleBytes (change_data )
25812579 result .append (
25822580 (
25832581 storage_key ,
2584- await self .decode_scale (
2585- storage_key .value_scale_type , change_data , runtime = runtime
2586- ),
2582+ storage_key .decode_scale_value (change_data ).value ,
25872583 ),
25882584 )
25892585
Original file line number Diff line number Diff line change @@ -2163,14 +2163,12 @@ def query_multi(
21632163 for change_storage_key , change_data in result_group ["changes" ]:
21642164 # Decode result for specified storage_key
21652165 storage_key = storage_key_map [change_storage_key ]
2166- if change_data is None :
2167- change_data = b"\x00 "
2168- else :
2169- change_data = bytes .fromhex (change_data [2 :])
2166+ if change_data is not None :
2167+ change_data = ScaleBytes (change_data )
21702168 result .append (
21712169 (
21722170 storage_key ,
2173- self . decode_scale ( storage_key .value_scale_type , change_data ),
2171+ storage_key .decode_scale_value ( change_data ). value ,
21742172 ),
21752173 )
21762174
You can’t perform that action at this time.
0 commit comments