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):
281
281
self .__weight = dispatch_info ["weight" ]
282
282
283
283
if "Module" in dispatch_error :
284
- module_index = dispatch_error ["Module" ][0 ][ "index" ]
284
+ module_index = dispatch_error ["Module" ]["index" ]
285
285
error_index = int .from_bytes (
286
- bytes (dispatch_error ["Module" ][0 ][ "error" ]),
286
+ bytes (dispatch_error ["Module" ]["error" ]),
287
287
byteorder = "little" ,
288
288
signed = False ,
289
289
)
Original file line number Diff line number Diff line change @@ -256,9 +256,9 @@ def process_events(self):
256
256
self .__weight = dispatch_info ["weight" ]
257
257
258
258
if "Module" in dispatch_error :
259
- module_index = dispatch_error ["Module" ][0 ][ "index" ]
259
+ module_index = dispatch_error ["Module" ]["index" ]
260
260
error_index = int .from_bytes (
261
- bytes (dispatch_error ["Module" ][0 ][ "error" ]),
261
+ bytes (dispatch_error ["Module" ]["error" ]),
262
262
byteorder = "little" ,
263
263
signed = False ,
264
264
)
You can’t perform that action at this time.
0 commit comments