Skip to content

Commit

Permalink
common/compiler: support relative import paths (ethereum#17374 ethere…
Browse files Browse the repository at this point in the history
  • Loading branch information
shiqinfeng1 authored and gzliudan committed Dec 26, 2024
1 parent 7948198 commit 6f85bce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/compiler/solidity.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ type solcOutput struct {
func (s *Solidity) makeArgs() []string {
p := []string{
"--combined-json", "bin,bin-runtime,srcmap,srcmap-runtime,abi,userdoc,devdoc",
"--optimize", // code optimizer switched on
"--optimize", // code optimizer switched on
"--allow-paths", "., ./, ../", // default to support relative paths
}
if s.Major > 0 || s.Minor > 4 || s.Patch > 6 {
p[1] += ",metadata,hashes"
Expand Down

0 comments on commit 6f85bce

Please sign in to comment.