Skip to content

Instantly share code, notes, and snippets.

@psytron
Created May 28, 2021 23:03
Show Gist options
  • Save psytron/2a68d04a0dbd2a613573404a4fe679dd to your computer and use it in GitHub Desktop.
Save psytron/2a68d04a0dbd2a613573404a4fe679dd to your computer and use it in GitHub Desktop.
SourceUnit
$ brownie compile
Brownie v1.14.6 - Python development framework for Ethereum
New compatible solc version available: 0.8.0
Compiling contracts...
Solc version: 0.8.0
Optimizer: Enabled Runs: 200
EVM Version: Istanbul
Generating build data...
- Proxy
- ERC20
- IERC20
- IERC20Metadata
- Context
- console
- Errors
- FixedPoint
- LogExpMath
- Math
- Controller
- FrogPoolV1
File "brownie/_cli/__main__.py", line 64, in main
importlib.import_module(f"brownie._cli.{cmd}").main()
File "brownie/_cli/compile.py", line 50, in main
proj = project.load()
File "brownie/project/main.py", line 745, in load
return Project(name, project_path)
File "brownie/project/main.py", line 180, in __init__
self.load()
File "brownie/project/main.py", line 235, in load
self._compile(changed, self._compiler_config, False)
File "brownie/project/main.py", line 92, in _compile
build_json = compiler.compile_and_format(
File "brownie/project/compiler/__init__.py", line 142, in compile_and_format
build_json.update(generate_build_json(input_json, output_json, compiler_data, silent))
File "brownie/project/compiler/__init__.py", line 313, in generate_build_json
build_json[contract_alias] = solidity._get_unique_build_json(
File "brownie/project/compiler/solidity.py", line 260, in _get_unique_build_json
pc_map, statement_map, branch_map = _generate_coverage_data(
File "brownie/project/compiler/solidity.py", line 451, in _generate_coverage_data
active_fn_node, active_fn_name = _get_active_fn(active_source_node, offset)
File "brownie/project/compiler/solidity.py", line 596, in _get_active_fn
return fn_node, f"{fn_node.parent().name}.{name}"
AttributeError: 'SourceUnit' object has no attribute 'name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment