Skip to content

Commit

Permalink
Undo previous change to how receipts were obtained. That change appli…
Browse files Browse the repository at this point in the history
…es to ape 0.8.8 but not to ape 0.7.x which we currently use.
  • Loading branch information
derekpierre committed Aug 20, 2024
1 parent 852f66d commit 67f8896
Showing 1 changed file with 3 additions and 7 deletions.
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

0 comments on commit 67f8896

Please sign in to comment.