Skip to content

Commit

Permalink
fix: dont track deploys yet
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 26, 2023
1 parent fe69049 commit 5e5327d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ape/api/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,12 @@ def track_coverage(self):
if traceback is not None and len(traceback) > 0 and self._test_runner is not None:
tracker.cover(traceback)

elif (address := (self.receiver or self.contract_address)) and (
method := self.method_called
):
elif (address := self.receiver) and (method := self.method_called):
# Unable to track detailed coverage like statement or branch
# The user will receive a warning at the end regarding this.
# At the very least, we can track function coverage.
#
# NOTE: Currently deploy transactions are not tracked!
contract_type = self.chain_manager.contracts.get(address)
if not contract_type or not contract_type.source_id:
return
Expand Down

0 comments on commit 5e5327d

Please sign in to comment.