Skip to content

Commit

Permalink
fix: messed up merge
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 6, 2025
1 parent 036cb2a commit 287a86c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 798 deletions.
10 changes: 2 additions & 8 deletions src/ape/managers/_contractscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,7 @@ def __getitem__(self, address: AddressType) -> ContractType:
contract_type = self.get(address)
if not contract_type:
# Create error message from custom exception cls.
err = ContractNotFoundError(
address, self.provider.network.explorer is not None, self.provider.network_choice
)
err = ContractNotFoundError(address, self.provider)
# Must raise KeyError.
raise KeyError(str(err))

Expand Down Expand Up @@ -692,11 +690,7 @@ def instance_at(
)

if not contract_type:
raise ContractNotFoundError(
contract_address,
self.provider.network.explorer is not None,
self.provider.network_choice,
)
raise ContractNotFoundError(contract_address, self.provider)

if not txn_hash:
# Check for txn_hash in deployments.
Expand Down
Loading

0 comments on commit 287a86c

Please sign in to comment.