From 74b5e7af2f0ec96fc2515d23f9f4d176a60fdb88 Mon Sep 17 00:00:00 2001 From: Josselin Date: Mon, 9 Nov 2020 18:40:02 +0100 Subject: [PATCH] Solc output: Sort source list Fix #112 Replace #120 --- crytic_compile/platform/solc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crytic_compile/platform/solc.py b/crytic_compile/platform/solc.py index 81e11f27..20bff11d 100644 --- a/crytic_compile/platform/solc.py +++ b/crytic_compile/platform/solc.py @@ -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}