Skip to content

Commit

Permalink
fix: sort
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed May 28, 2024
1 parent 3f3331b commit af4cfc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _get_settings_from_version_map(
"optimizer": {"enabled": config.optimize, "runs": DEFAULT_OPTIMIZATION_RUNS},
"outputSelection": {
str(get_relative_path(p, pm.path)): {"*": OUTPUT_SELECTION, "": ["ast"]}
for p in sources
for p in sorted(sources)
},
**kwargs,
}
Expand Down Expand Up @@ -476,7 +476,8 @@ def get_standard_input_json_from_settings(
raise CompilerError(f"Sources '{missing_src_str}' not found in '{pm.name}'.")

sources = {
x: {"content": (pm.path / x).read_text()} for x in vers_settings["outputSelection"]
x: {"content": (pm.path / x).read_text()}
for x in sorted(vers_settings["outputSelection"])
}

input_jsons[solc_version] = {
Expand Down

0 comments on commit af4cfc0

Please sign in to comment.