@@ -75,12 +75,6 @@ class AsyncBaseProvider:
7575 Tuple [Middleware , ...], Callable [..., Coroutine [Any , Any , RPCResponse ]]
7676 ] = (None , None )
7777
78- _is_batching : bool = False
79- _batch_request_func_cache : Tuple [
80- Tuple [Middleware , ...],
81- Callable [..., Coroutine [Any , Any , Union [List [RPCResponse ], RPCResponse ]]],
82- ] = (None , None )
83-
8478 is_async = True
8579 has_persistent_connection = False
8680 global_ccip_read_enabled : bool = True
@@ -100,6 +94,11 @@ def __init__(
10094 self .cache_allowed_requests = cache_allowed_requests
10195 self .cacheable_requests = cacheable_requests or CACHEABLE_REQUESTS
10296 self .request_cache_validation_threshold = request_cache_validation_threshold
97+ self ._is_batching : bool = False
98+ self ._batch_request_func_cache : Tuple [
99+ Tuple [Middleware , ...],
100+ Callable [..., Coroutine [Any , Any , Union [List [RPCResponse ], RPCResponse ]]],
101+ ] = (None , None )
103102
104103 async def request_func (
105104 self , async_w3 : "AsyncWeb3" , middleware_onion : MiddlewareOnion
0 commit comments