default to support relative path:" ./ ../ . ",

in the  solidity contacts import paths, default to support relative path:" ./  ../  . " .
This commit is contained in:
shiqinfeng1 2018-08-10 11:07:11 +08:00 committed by GitHub
parent 45eaef2431
commit 7dbf4ea752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"