Skip to content

Commit d13b947

Browse files
committed
fix: sort
1 parent 865852e commit d13b947

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ape_solidity/compiler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,11 @@ def get_version_map_from_imports(
928928
if not files_by_solc_version[solc_version]:
929929
del files_by_solc_version[solc_version]
930930

931-
return {add_commit_hash(v): ls for v, ls in files_by_solc_version.items()}
931+
result = {add_commit_hash(v): ls for v, ls in files_by_solc_version.items()}
932+
933+
# Sort, so it is a nicer version map and the rest of the compilation flow
934+
# is more predictable.
935+
return {k: result[k] for k in sorted(result)}
932936

933937
def _get_imported_source_paths(
934938
self,

0 commit comments

Comments
 (0)