Skip to content

Commit 88b59e6

Browse files
committed
eth_sendTransaction to Method
1 parent dce9031 commit 88b59e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

web3/_utils/method_formatters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ def get_request_formatters(
499499
) -> Dict[str, Callable[..., Any]]:
500500
request_formatter_maps = (
501501
METHOD_NORMALIZERS,
502-
PYTHONIC_REQUEST_FORMATTERS,
503502
ABI_REQUEST_FORMATTERS,
503+
PYTHONIC_REQUEST_FORMATTERS,
504504
)
505505
formatters = combine_formatters(request_formatter_maps, method_name)
506506
return compose(*formatters)

web3/_utils/validation.py

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def validate_address(value: Any) -> None:
156156
"""
157157
Helper function for validating an address
158158
"""
159+
# if value == b'':
160+
# return
159161
if is_bytes(value):
160162
if not is_binary_address(value):
161163
raise InvalidAddress("Address must be 20 bytes when input type is bytes", value)

0 commit comments

Comments
 (0)