Skip to content

Commit

Permalink
Solc output: Sort source list
Browse files Browse the repository at this point in the history
Fix #112
Replace #120
  • Loading branch information
montyly committed Nov 9, 2020
1 parent 7f6a1c6 commit 74b5e7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crytic_compile/platform/solc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def export_to_solc(crytic_compile: "CryticCompile", **kwargs: str) -> Union[str,
# Create additional informational objects.
sources = {filename: {"AST": ast} for (filename, ast) in crytic_compile.asts.items()}
source_list = [x.absolute for x in crytic_compile.filenames]
source_list.sort() # needed for Echidna, see https://github.com/crytic/crytic-compile/issues/112

# Create our root object to contain the contracts and other information.
output = {"sources": sources, "sourceList": source_list, "contracts": contracts}
Expand Down

0 comments on commit 74b5e7a

Please sign in to comment.