Skip to content

Commit 260b177

Browse files
shiqinfeng1fjl
authored andcommitted
common/compiler: support relative import paths (#17374)
1 parent c2c4c9f commit 260b177

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎common/compiler/solidity.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func (s *Solidity) makeArgs() []string {
4848
p := []string{
4949
"--combined-json", "bin,bin-runtime,srcmap,srcmap-runtime,abi,userdoc,devdoc",
5050
"--optimize", // code optimizer switched on
51+
"--allow-paths", "., ./, ../", //default to support relative path: ./ ../ .
5152
}
5253
if s.Major > 0 || s.Minor > 4 || s.Patch > 6 {
5354
p[1] += ",metadata,hashes"

0 commit comments

Comments
 (0)