Commit bc63a3d2 authored by Felix Lange's avatar Felix Lange

Merge pull request #2292 from remyroy/fix-solc-win-path

Fix path problem with Solidity compile with filepath.Glob on Windows
parents d45f01d5 de1831b6
...@@ -157,7 +157,7 @@ func (sol *Solidity) Compile(source string) (map[string]*Contract, error) { ...@@ -157,7 +157,7 @@ func (sol *Solidity) Compile(source string) (map[string]*Contract, error) {
return nil, fmt.Errorf("solc: %v\n%s", err, string(stderr.Bytes())) return nil, fmt.Errorf("solc: %v\n%s", err, string(stderr.Bytes()))
} }
// Sanity check that something was actually built // Sanity check that something was actually built
matches, _ := filepath.Glob(wd + "/*\\.bin*") matches, _ := filepath.Glob(filepath.Join(wd, "*.bin*"))
if len(matches) < 1 { if len(matches) < 1 {
return nil, fmt.Errorf("solc: no build results found") return nil, fmt.Errorf("solc: no build results found")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment