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

Undo previous change regarding how receipts were obtained #310

Merged
merged 1 commit into from
Aug 20, 2024
Merged
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
10 changes: 3 additions & 7 deletions deployment/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
from pathlib import Path
from typing import Dict, List, NamedTuple, Optional

from ape import chain, project
from ape import project
from ape.contracts import ContractInstance
from eth_typing import ChecksumAddress
from eth_utils import to_checksum_address
from web3.types import ABI

from deployment.utils import (
_load_json,
get_contract_container,
registry_filepath_from_domain
)
from deployment.utils import _load_json, get_contract_container, registry_filepath_from_domain

ChainId = int
ContractName = str
Expand Down Expand Up @@ -68,7 +64,7 @@ def _get_entry(
) -> RegistryEntry:
contract_abi = _get_abi(contract_instance)
contract_name = _get_name(contract_instance=contract_instance, registry_names=registry_names)
receipt = chain.get_receipt(contract_instance.txn_hash)
receipt = contract_instance.receipt
entry = RegistryEntry(
name=contract_name,
address=to_checksum_address(contract_instance.address),
Expand Down
Loading