From 67f889690d7178972f106eb490e1e05ffc631576 Mon Sep 17 00:00:00 2001 From: derekpierre Date: Tue, 20 Aug 2024 14:22:54 -0400 Subject: [PATCH] Undo previous change to how receipts were obtained. That change applies to ape 0.8.8 but not to ape 0.7.x which we currently use. --- deployment/registry.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/deployment/registry.py b/deployment/registry.py index 7fb03e45..7d2aa0ae 100644 --- a/deployment/registry.py +++ b/deployment/registry.py @@ -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 @@ -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),