Skip to content

Commit

Permalink
fix: sort
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jun 1, 2024
1 parent 865852e commit d13b947
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,11 @@ def get_version_map_from_imports(
if not files_by_solc_version[solc_version]:
del files_by_solc_version[solc_version]

return {add_commit_hash(v): ls for v, ls in files_by_solc_version.items()}
result = {add_commit_hash(v): ls for v, ls in files_by_solc_version.items()}

# Sort, so it is a nicer version map and the rest of the compilation flow
# is more predictable.
return {k: result[k] for k in sorted(result)}

def _get_imported_source_paths(
self,
Expand Down

0 comments on commit d13b947

Please sign in to comment.