Skip to content

Commit

Permalink
fix: coverage in the presence of ABIContract (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper authored Sep 1, 2024
1 parent e7a35a9 commit 69e866a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def execute_code(
# so we need to use this in case the pc trace covers multiple files
def _trace_computation(self, computation, contract=None):
# perf: don't trace if contract is None
if contract is not None:
if contract is not None and hasattr(contract, "source_map"):
ast_map = contract.source_map["pc_raw_ast_map"]
seen_pcs = set()
for pc in computation.code._trace:
Expand Down

0 comments on commit 69e866a

Please sign in to comment.