Skip to content

Commit 62ee9c6

Browse files
fix: broken import (#307)
* fix: broken import * chore: `black .` * chore: update lockfile --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bbc30e8 commit 62ee9c6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/pytest.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ jobs:
5151
uses: snok/install-poetry@v1
5252

5353
- name: Install Dependencies
54-
run: |
55-
poetry run pip install cython wheel
56-
poetry run pip install ez-a-sync
57-
poetry install --no-interaction
54+
run: poetry install --no-interaction
5855

5956
- name: Setup brownie networks
6057
run: |

dank_mids/brownie_patch/call.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from brownie.project.compiler.solidity import SOLIDITY_ERROR_CODES
3131
from eth_abi.exceptions import InsufficientDataBytes
3232
from eth_typing import HexStr
33+
from evmspec.data import Address
3334
from hexbytes import HexBytes
3435
from hexbytes.main import BytesLike
3536
from multicall.constants import MULTICALL2_ADDRESSES
@@ -40,7 +41,7 @@
4041
from dank_mids.exceptions import Revert
4142
from dank_mids.helpers._helpers import DankWeb3
4243

43-
44+
4445
logger = logging.getLogger(__name__)
4546

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

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

71+
7072
def _patch_call(call: ContractCall, w3: DankWeb3) -> None:
7173
"""
7274
Patch a Brownie ContractCall to enable asynchronous use via dank_mids for batching.

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)