Skip to content

Commit ac58ba3

Browse files
Update validation.py
1 parent 08027c6 commit ac58ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web3/middleware/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
FormattingMiddlewareBuilder,
3737
)
3838
from web3.types import (
39-
Formatters,
4039
FormattersDict,
40+
RequestFormatters,
4141
RPCEndpoint,
4242
TxParams,
4343
)
@@ -151,7 +151,7 @@ def build_method_validators(w3: "Web3", method: RPCEndpoint) -> FormattersDict:
151151
async def async_build_method_validators(
152152
async_w3: "AsyncWeb3", method: RPCEndpoint
153153
) -> FormattersDict:
154-
request_formatters: Formatters = {}
154+
request_formatters: RequestFormatters = {}
155155
if RPCEndpoint(method) in METHODS_TO_VALIDATE:
156156
w3_chain_id = await async_w3.eth.chain_id
157157
for method in METHODS_TO_VALIDATE:

0 commit comments

Comments
 (0)