Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken import #307

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading