We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865852e commit d13b947Copy full SHA for d13b947
ape_solidity/compiler.py
@@ -928,7 +928,11 @@ def get_version_map_from_imports(
928
if not files_by_solc_version[solc_version]:
929
del files_by_solc_version[solc_version]
930
931
- 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()}
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)}
936
937
def _get_imported_source_paths(
938
self,
0 commit comments