Skip to content

Commit 75533b1

Browse files
committed
bug: combine_argument_formatters is deprecated
Changed to apply_formatters_to_sequence
1 parent 452a8b9 commit 75533b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web3/middleware/pythonic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import operator
33

44
from 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

259259
estimate_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

266266
pythonic_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

Comments
 (0)