From 260b177fe3f0ec897a4a4d71f2c2247e50b9fbd3 Mon Sep 17 00:00:00 2001 From: shiqinfeng1 <150627601@qq.com> Date: Thu, 15 Aug 2019 16:33:06 +0800 Subject: [PATCH] common/compiler: support relative import paths (#17374) --- common/compiler/solidity.go | 1 + 1 file changed, 1 insertion(+) 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"