Skip to content

Commit

Permalink
Merge pull request #310 from derekpierre/rollback-receipt
Browse files Browse the repository at this point in the history
Undo previous change regarding how receipts were obtained
  • Loading branch information
theref authored Aug 20, 2024
2 parents 852f66d + 67f8896 commit 9e115b6
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 9e115b6

Please sign in to comment.