Skip to content

Commit

Permalink
Add comment on order of request formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Oct 15, 2020
1 parent f8f72fb commit 08cbd32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,12 @@ def get_request_formatters(
) -> Dict[str, Callable[..., Any]]:
request_formatter_maps = (
ABI_REQUEST_FORMATTERS,
PYTHONIC_REQUEST_FORMATTERS,
# METHOD_NORMALIZERS needs to be after ABI_REQUEST_FORMATTERS
# so that eth_getLogs's apply_formatter_at_index formatter
# is applied to the whole address
# rather than on the first byte of the address
METHOD_NORMALIZERS,
PYTHONIC_REQUEST_FORMATTERS,
)
formatters = combine_formatters(request_formatter_maps, method_name)
return compose(*formatters)
Expand Down

0 comments on commit 08cbd32

Please sign in to comment.