22import operator
33
44from eth_utils .curried import (
5- combine_argument_formatters ,
5+ apply_formatters_to_sequence ,
66 is_address ,
77 is_bytes ,
88 is_integer ,
@@ -257,10 +257,10 @@ def to_hexbytes(num_bytes, val, variable_length=False):
257257)
258258
259259estimate_gas_without_block_id = apply_formatter_at_index (transaction_param_formatter , 0 )
260- estimate_gas_with_block_id = combine_argument_formatters (
260+ estimate_gas_with_block_id = apply_formatters_to_sequence ([
261261 transaction_param_formatter ,
262262 block_number_formatter ,
263- )
263+ ] )
264264
265265
266266pythonic_middleware = construct_formatting_middleware (
@@ -287,10 +287,10 @@ def to_hexbytes(num_bytes, val, variable_length=False):
287287 'eth_getUncleByBlockHashAndIndex' : apply_formatter_at_index (integer_to_hex , 1 ),
288288 'eth_newFilter' : apply_formatter_at_index (filter_params_formatter , 0 ),
289289 'eth_getLogs' : apply_formatter_at_index (filter_params_formatter , 0 ),
290- 'eth_call' : combine_argument_formatters (
290+ 'eth_call' : apply_formatters_to_sequence ([
291291 transaction_param_formatter ,
292292 block_number_formatter ,
293- ),
293+ ] ),
294294 'eth_estimateGas' : apply_one_of_formatters ((
295295 (estimate_gas_without_block_id , is_length (1 )),
296296 (estimate_gas_with_block_id , is_length (2 )),
0 commit comments