From a98b80ae48e4b501bdf54d17fa072d54b542e202 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:04:47 -0400 Subject: [PATCH] fix: DankEth.get_block_number is defined twice (#286) * fix: DankEth.get_block_number is defined twice * chore: remove commented out code * chore: bump version to 4.20.100 --- dank_mids/_method.py | 10 ---------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/dank_mids/_method.py b/dank_mids/_method.py index 6778963e..d7a2574d 100644 --- a/dank_mids/_method.py +++ b/dank_mids/_method.py @@ -84,15 +84,6 @@ def bypass_getbalance_formatter(eth: Type[BaseEth]) -> None: eth._get_balance = MethodNoFormat(RPC.eth_getBalance, mungers=[eth.block_id_munger]) -def bypass_blocknumber_formatter(eth: Type[BaseEth]) -> None: - """Bypasses the formatter for the eth_blockNumber method. - - Args: - eth: The Ethereum base class instance whose method is to be modified. - """ - eth.get_block_number = MethodNoFormat(RPC.eth_blockNumber) - - def bypass_transaction_count_formatter(eth: Type[BaseEth]) -> None: """Bypasses the formatter for the eth_getTransactionCount method. @@ -186,7 +177,6 @@ def bypass_get_code_formatter(eth: Type[BaseEth]) -> None: skip_formatters = ( bypass_chainid_formatter, bypass_getbalance_formatter, - bypass_blocknumber_formatter, bypass_transaction_count_formatter, bypass_eth_call_formatter, bypass_get_code_formatter, diff --git a/pyproject.toml b/pyproject.toml index eb79f67c..2cefe8f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dank-mids" -version = "4.20.99" +version = "4.20.100" description = "Multicall batching middleware for asynchronous scripts using web3.py" authors = ["BobTheBuidler "] homepage = "https://github.com/BobTheBuidler/dank_mids"