From 7dbf4ea7528d4e27c4ed4224f8f718ef24644b52 Mon Sep 17 00:00:00 2001 From: shiqinfeng1 <150627601@qq.com> Date: Fri, 10 Aug 2018 11:07:11 +0800 Subject: [PATCH] =?UTF-8?q?default=20to=20support=20relative=20path?= =?UTF-8?q?=EF=BC=9A"=20./=20=20../=20=20.=20",?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in the solidity contacts import paths, default to support relative path:" ./ ../ . " . --- common/compiler/solidity.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/compiler/solidity.go b/common/compiler/solidity.go index f6e8d2e42a..ceb67d9632 100644 --- a/common/compiler/solidity.go +++ b/common/compiler/solidity.go @@ -72,6 +72,7 @@ func (s *Solidity) makeArgs() []string { p := []string{ "--combined-json", "bin,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"