Skip to content

Commit

Permalink
refactor: reversed
Browse files Browse the repository at this point in the history
Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
  • Loading branch information
antazoey and fubuloubu authored Sep 6, 2023
1 parent b5dfefb commit 9930585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def _get_pragma_spec(self, path: Path) -> Optional[NpmSpec]:
else:
# Attempt to use the best-installed version.
# NOTE: Use the oldest version available for maximum compatibility.
for version in self.installed_versions[::-1]:
for version in reversed(self.installed_versions):
if pragma_spec.match(version):
logger.warning(
"The installed version(s) are not ideal, "
Expand Down

0 comments on commit 9930585

Please sign in to comment.