File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
async_substrate_interface Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -281,9 +281,9 @@ async def process_events(self):
281281 self .__weight = dispatch_info ["weight" ]
282282
283283 if "Module" in dispatch_error :
284- module_index = dispatch_error ["Module" ][0 ][ "index" ]
284+ module_index = dispatch_error ["Module" ]["index" ]
285285 error_index = int .from_bytes (
286- bytes (dispatch_error ["Module" ][0 ][ "error" ]),
286+ bytes (dispatch_error ["Module" ]["error" ]),
287287 byteorder = "little" ,
288288 signed = False ,
289289 )
Original file line number Diff line number Diff line change @@ -256,9 +256,9 @@ def process_events(self):
256256 self .__weight = dispatch_info ["weight" ]
257257
258258 if "Module" in dispatch_error :
259- module_index = dispatch_error ["Module" ][0 ][ "index" ]
259+ module_index = dispatch_error ["Module" ]["index" ]
260260 error_index = int .from_bytes (
261- bytes (dispatch_error ["Module" ][0 ][ "error" ]),
261+ bytes (dispatch_error ["Module" ]["error" ]),
262262 byteorder = "little" ,
263263 signed = False ,
264264 )
You can’t perform that action at this time.
0 commit comments