Skip to content

Commit

Permalink
fix: DankEth.get_block_number is defined twice (#286)
Browse files Browse the repository at this point in the history
* fix: DankEth.get_block_number is defined twice

* chore: remove commented out code

* chore: bump version to 4.20.100
  • Loading branch information
BobTheBuidler authored Nov 17, 2024
1 parent 7de8fc4 commit a98b80a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions dank_mids/_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
homepage = "https://github.com/BobTheBuidler/dank_mids"
Expand Down

0 comments on commit a98b80a

Please sign in to comment.