Skip to content

Commit

Permalink
fix: broken import (#307)
Browse files Browse the repository at this point in the history
* fix: broken import

* chore: `black .`

* chore: update lockfile

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BobTheBuidler and github-actions[bot] authored Nov 27, 2024
1 parent bbc30e8 commit 62ee9c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ jobs:
uses: snok/install-poetry@v1

- name: Install Dependencies
run: |
poetry run pip install cython wheel
poetry run pip install ez-a-sync
poetry install --no-interaction
run: poetry install --no-interaction

- name: Setup brownie networks
run: |
Expand Down
6 changes: 4 additions & 2 deletions dank_mids/brownie_patch/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from brownie.project.compiler.solidity import SOLIDITY_ERROR_CODES
from eth_abi.exceptions import InsufficientDataBytes
from eth_typing import HexStr
from evmspec.data import Address
from hexbytes import HexBytes
from hexbytes.main import BytesLike
from multicall.constants import MULTICALL2_ADDRESSES
Expand All @@ -40,7 +41,7 @@
from dank_mids.exceptions import Revert
from dank_mids.helpers._helpers import DankWeb3


logger = logging.getLogger(__name__)

encode = lambda self, *args: ENVS.BROWNIE_ENCODER_PROCESSES.run(__encode_input, self.abi, self.signature, *args) # type: ignore [attr-defined]
Expand All @@ -63,10 +64,11 @@
*args: The arguments to be encoded.
"""

# We do this so ypricemagic's checksum cache monkey patch will work,
# We do this so ypricemagic's checksum cache monkey patch will work,
# This is only relevant to you if your project uses ypricemagic as well.
to_checksum_address = Address.checksum


def _patch_call(call: ContractCall, w3: DankWeb3) -> None:
"""
Patch a Brownie ContractCall to enable asynchronous use via dank_mids for batching.
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 62ee9c6

Please sign in to comment.