Skip to content

Commit 4b4de6d

Browse files
joevanloonbohendo
authored andcommitted
Update solc.py
Fixed a variable reference and corrected style.
1 parent 6a18ffb commit 4b4de6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crytic_compile/platform/solc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,12 @@ def _run_solcs_path(
627627
)
628628
break
629629
except InvalidCompilation as ic:
630-
compilation_errors.append(version_env+': '+ic.args[0])
630+
compilation_errors.append(solc_bin + ': ' + ic.args[0])
631631
pass
632632

633633
if not targets_json:
634634
raise InvalidCompilation(
635-
"Invalid solc compilation, none of the solc versions provided worked:\n"+'\n'.join(compilation_errors)
635+
"Invalid solc compilation, none of the solc versions provided worked:\n" + '\n'.join(compilation_errors)
636636
)
637637

638638
return targets_json
@@ -715,12 +715,12 @@ def _run_solcs_env(
715715
)
716716
break
717717
except InvalidCompilation as ic:
718-
compilation_errors.append(version_env+': '+ic.args[0])
718+
compilation_errors.append(version_env + ': ' + ic.args[0])
719719
pass
720720

721721
if not targets_json:
722722
raise InvalidCompilation(
723-
"Invalid solc compilation, none of the solc versions provided worked:\n"+'\n'.join(compilation_errors)
723+
"Invalid solc compilation, none of the solc versions provided worked:\n" + '\n'.join(compilation_errors)
724724
)
725725

726726
return targets_json

0 commit comments

Comments
 (0)