diff --git a/async_substrate_interface/async_substrate.py b/async_substrate_interface/async_substrate.py index 94abf59..7795630 100644 --- a/async_substrate_interface/async_substrate.py +++ b/async_substrate_interface/async_substrate.py @@ -1394,6 +1394,8 @@ async def result_handler( response["result"]["block"], block_data_hash=block_hash ) + get_block_handler = _get_block_handler + async def get_block( self, block_hash: Optional[str] = None, diff --git a/async_substrate_interface/sync_substrate.py b/async_substrate_interface/sync_substrate.py index a3a9f4d..f2265fe 100644 --- a/async_substrate_interface/sync_substrate.py +++ b/async_substrate_interface/sync_substrate.py @@ -1141,6 +1141,8 @@ def result_handler(message: dict, subscription_id: str) -> tuple[Any, bool]: response["result"]["block"], block_data_hash=block_hash ) + get_block_handler = _get_block_handler + def get_block( self, block_hash: Optional[str] = None,