Skip to content

Commit

Permalink
fix: debug source_map_str not being string
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Aug 17, 2024
1 parent c6eed94 commit 7f58e2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion brownie/project/compiler/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,12 @@ def _get_unique_build_json(
else:
ast = ast_json

source_map = output_evm["deployedBytecode"]["sourceMap"]
if not isinstance(source_map, str):
raise TypeError(source_map)

pc_map, statement_map, branch_map = _generate_coverage_data(
output_evm["deployedBytecode"]["sourceMap"],
source_map,
output_evm["deployedBytecode"]["opcodes"],
contract_name,
ast,
Expand Down

0 comments on commit 7f58e2f

Please sign in to comment.