aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-08 07:05:48 +0800
committerFelix Lange <fjl@twurst.com>2016-03-08 07:05:48 +0800
commitbc63a3d282eedc4641def57cfb1c684de580a74b (patch)
tree1f4f03ec333b7d1a7a3d62440b242e64e338d122
parentd45f01d5f782857c6a65f65fdc67b630a8f028bd (diff)
parentde1831b6e9e0ad1e80201d82574899de69b0df0d (diff)
downloadgo-tangerine-bc63a3d282eedc4641def57cfb1c684de580a74b.tar.gz
go-tangerine-bc63a3d282eedc4641def57cfb1c684de580a74b.tar.zst
go-tangerine-bc63a3d282eedc4641def57cfb1c684de580a74b.zip
Merge pull request #2292 from remyroy/fix-solc-win-path
Fix path problem with Solidity compile with filepath.Glob on Windows
-rw-r--r--common/compiler/solidity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/compiler/solidity.go b/common/compiler/solidity.go
index 8d3304029..ddf7a1ac9 100644
--- a/common/compiler/solidity.go
+++ b/common/compiler/solidity.go
@@ -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()))
}
// Sanity check that something was actually built
- matches, _ := filepath.Glob(wd + "/*\\.bin*")
+ matches, _ := filepath.Glob(filepath.Join(wd, "*.bin*"))
if len(matches) < 1 {
return nil, fmt.Errorf("solc: no build results found")
}