Skip to content

Commit c2d2fec

Browse files
committed
feat: cache Method.method_selector_fn
1 parent eed202e commit c2d2fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web3/method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def __get__(
166166
)
167167

168168
provider = module.w3.provider
169-
if hasattr(provider, "_is_batching") and provider._is_batching:
169+
if getattr(provider, "_is_batching", False):
170170
if self.json_rpc_method in RPC_METHODS_UNSUPPORTED_DURING_BATCH:
171171
raise MethodNotSupported(
172172
f"Method `{self.json_rpc_method}` is not supported within a batch "

0 commit comments

Comments
 (0)