Skip to content

Commit cc9cd09

Browse files
committed
Fix
1 parent 49d27a3 commit cc9cd09

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)