diff --git a/eth_abi/decoding.py b/eth_abi/decoding.py index f706a94a9b..6896011988 100644 --- a/eth_abi/decoding.py +++ b/eth_abi/decoding.py @@ -7,7 +7,7 @@ from eth_utils import ( big_endian_to_int, - to_normalized_address, + to_checksum_address, to_tuple, ) @@ -365,7 +365,7 @@ def from_type_str(cls, abi_type, registry): class AddressDecoder(Fixed32ByteSizeDecoder): value_bit_size = 20 * 8 is_big_endian = True - decoder_fn = staticmethod(to_normalized_address) + decoder_fn = staticmethod(to_checksum_address) @parse_type_str('address') def from_type_str(cls, abi_type, registry): diff --git a/tests/test_decoding/test_decoder_properties.py b/tests/test_decoding/test_decoder_properties.py index d4d96efee4..01e67c850f 100644 --- a/tests/test_decoding/test_decoder_properties.py +++ b/tests/test_decoding/test_decoder_properties.py @@ -4,7 +4,7 @@ big_endian_to_int, decode_hex, int_to_big_endian, - to_normalized_address, + to_checksum_address, ) from eth_utils.toolz import ( complement, @@ -369,7 +369,7 @@ def test_decode_address(address_bytes, padding_size, data_byte_size): else: decoded_value = decoder(stream) - actual_value = to_normalized_address(stream_bytes[:data_byte_size][-20:]) + actual_value = to_checksum_address(stream_bytes[:data_byte_size][-20:]) assert decoded_value == actual_value