Skip to content

Commit

Permalink
format receipt.type to int and log.data to HexBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed May 26, 2022
1 parent 4d3caef commit f3bef3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/2482.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
format receipt.type to int and log.data to HexBytes
3 changes: 2 additions & 1 deletion web3/_utils/method_formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:
'logIndex': to_integer_if_hex,
'address': to_checksum_address,
'topics': apply_list_to_array_formatter(to_hexbytes(32)),
'data': to_ascii_if_bytes,
'data': HexBytes,
}


Expand All @@ -201,6 +201,7 @@ def apply_list_to_array_formatter(formatter: Any) -> Callable[..., Any]:
'from': apply_formatter_if(is_not_null, to_checksum_address),
'to': apply_formatter_if(is_address, to_checksum_address),
'effectiveGasPrice': to_integer_if_hex,
'type': to_integer_if_hex,
}


Expand Down

0 comments on commit f3bef3b

Please sign in to comment.