Skip to content

Commit a206f59

Browse files
committed
add debug log
1 parent c473f85 commit a206f59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

async_substrate_interface/sync_substrate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,9 @@ def _do_runtime_call_old(
22572257
params: Optional[Union[list, dict]] = None,
22582258
block_hash: Optional[str] = None,
22592259
) -> ScaleType:
2260+
logging.debug(
2261+
f"Decoding old runtime call: {api}.{method} with params: {params} at block hash: {block_hash}"
2262+
)
22602263
runtime_call_def = _TYPE_REGISTRY["runtime_api"][api]["methods"][method]
22612264

22622265
# Encode params
@@ -2301,6 +2304,7 @@ def _as_dict(obj):
23012304
# Get correct type
23022305
result_decoded = runtime_call_def["decoder"](bytes(result_bytes))
23032306
as_dict = _as_dict(result_decoded)
2307+
logging.debug("Decoded old runtime call result: ", as_dict)
23042308
result_obj = ScaleObj(as_dict)
23052309

23062310
return result_obj

0 commit comments

Comments
 (0)