From 8a04ec0293618f89b583b979a4fcd1481a4f8e21 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Fri, 2 May 2025 17:57:40 +0200 Subject: [PATCH] Exposes `_get_block_handler` publicly in both async and sync substrate interfaces. --- async_substrate_interface/async_substrate.py | 2 ++ async_substrate_interface/sync_substrate.py | 2 ++ 2 files changed, 4 insertions(+) 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,