aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorshiqinfeng1 <150627601@qq.com>2019-08-15 16:33:06 +0800
committerFelix Lange <fjl@twurst.com>2019-08-15 16:33:06 +0800
commit260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3 (patch)
treeb8812e015f308df8b8f6af2d0f619b69b4f5acb6 /common
parentc2c4c9f1e5f887058285c1299d250899fe0f7d89 (diff)
downloadgo-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar.gz
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar.bz2
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar.lz
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar.xz
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.tar.zst
go-tangerine-260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3.zip
common/compiler: support relative import paths (#17374)
Diffstat (limited to 'common')
-rw-r--r--common/compiler/solidity.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/compiler/solidity.go b/common/compiler/solidity.go
index 50b32d7e5..15c62ce7f 100644
--- a/common/compiler/solidity.go
+++ b/common/compiler/solidity.go
@@ -48,6 +48,7 @@ func (s *Solidity) makeArgs() []string {
p := []string{
"--combined-json", "bin,bin-runtime,srcmap,srcmap-runtime,abi,userdoc,devdoc",
"--optimize", // code optimizer switched on
+ "--allow-paths", "., ./, ../", //default to support relative path: ./ ../ .
}
if s.Major > 0 || s.Minor > 4 || s.Patch > 6 {
p[1] += ",metadata,hashes"