From b8d6bfc82d0d78679555dc0d87dc97c6ee928aaf Mon Sep 17 00:00:00 2001 From: Bryant Eisenbach Date: Thu, 23 May 2019 17:46:28 -0400 Subject: [PATCH] bug: combine_argument_formatters is deprecated Changed to apply_formatters_to_sequence --- web3/middleware/pythonic.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web3/middleware/pythonic.py b/web3/middleware/pythonic.py index e2ff198ebd..dfa629d13a 100644 --- a/web3/middleware/pythonic.py +++ b/web3/middleware/pythonic.py @@ -2,7 +2,7 @@ import operator from eth_utils.curried import ( - combine_argument_formatters, + apply_formatters_to_sequence, is_address, is_bytes, is_integer, @@ -273,10 +273,10 @@ def to_hexbytes(num_bytes, val, variable_length=False): ) estimate_gas_without_block_id = apply_formatter_at_index(transaction_param_formatter, 0) -estimate_gas_with_block_id = combine_argument_formatters( +estimate_gas_with_block_id = apply_formatters_to_sequence([ transaction_param_formatter, block_number_formatter, -) +]) pythonic_middleware = construct_formatting_middleware( @@ -304,10 +304,10 @@ def to_hexbytes(num_bytes, val, variable_length=False): 'eth_getUncleByBlockHashAndIndex': apply_formatter_at_index(integer_to_hex, 1), 'eth_newFilter': apply_formatter_at_index(filter_params_formatter, 0), 'eth_getLogs': apply_formatter_at_index(filter_params_formatter, 0), - 'eth_call': combine_argument_formatters( + 'eth_call': apply_formatters_to_sequence([ transaction_param_formatter, block_number_formatter, - ), + ]), 'eth_estimateGas': apply_one_of_formatters(( (estimate_gas_without_block_id, is_length(1)), (estimate_gas_with_block_id, is_length(2)),