Skip to content

Commit

Permalink
Manually overwrite solc path
Browse files Browse the repository at this point in the history
  • Loading branch information
randoum committed Jan 27, 2023
1 parent 59bacd6 commit d999d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/eth/solidity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class CompilerError < StandardError; end

# Instantiates a Solidity `solc` system compiler binding that can be
# used to compile Solidity contracts.
def initialize
def initialize(manual_path = nil)

# Currently only supports `solc`.
solc = get_compiler_path
solc = manual_path || get_compiler_path
raise SystemCallError, "Unable to find the solc compiler path!" if solc.nil?
@compiler = solc
end
Expand Down

0 comments on commit d999d3d

Please sign in to comment.