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(
2574
2574
for change_storage_key , change_data in result_group ["changes" ]:
2575
2575
# Decode result for specified storage_key
2576
2576
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 )
2581
2579
result .append (
2582
2580
(
2583
2581
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 ,
2587
2583
),
2588
2584
)
2589
2585
Original file line number Diff line number Diff line change @@ -2163,14 +2163,12 @@ def query_multi(
2163
2163
for change_storage_key , change_data in result_group ["changes" ]:
2164
2164
# Decode result for specified storage_key
2165
2165
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 )
2170
2168
result .append (
2171
2169
(
2172
2170
storage_key ,
2173
- self . decode_scale ( storage_key .value_scale_type , change_data ),
2171
+ storage_key .decode_scale_value ( change_data ). value ,
2174
2172
),
2175
2173
)
2176
2174
You can’t perform that action at this time.
0 commit comments