Skip to content

Commit

Permalink
chore: add exc detail
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Aug 17, 2024
1 parent d28b3b0 commit 3ad567b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions brownie/project/compiler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def expand_source_map(source_map_str: str) -> List:
# Expands the compressed sourceMap supplied by solc into a list of lists

if not isinstance(source_map_str, str):
# NOTE: why do we need this?
source_map_str = source_map_str["ps_pos_map_compressed"]
raise TypeError(source_map_str) from None

source_map: List = [_expand_row(i) if i else None for i in source_map_str.split(";")]
Expand Down
4 changes: 2 additions & 2 deletions brownie/project/compiler/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def _get_unique_build_json(
ast = ast_json

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

pc_map, statement_map, branch_map = _generate_coverage_data(
source_map,
Expand Down

0 comments on commit 3ad567b

Please sign in to comment.