Skip to content

Commit

Permalink
Fix solgen paths with new foundry versions
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower authored and sduchesneau committed Jun 14, 2024
1 parent 745cd68 commit 6eb03a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solgen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func main() {
}
root := filepath.Dir(filename)
parent := filepath.Dir(root)
filePaths, err := filepath.Glob(filepath.Join(parent, "contracts", "build", "contracts", "src", "*", "*", "*.json"))
filePaths, err := filepath.Glob(filepath.Join(parent, "contracts", "build", "contracts", "src", "*", "*.sol", "*.json"))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -105,7 +105,7 @@ func main() {
modInfo.addArtifact(artifact)
}

yulFilePaths, err := filepath.Glob(filepath.Join(parent, "contracts", "out", "yul", "*", "*.json"))
yulFilePaths, err := filepath.Glob(filepath.Join(parent, "contracts", "out", "*", "*.yul", "*.json"))
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 6eb03a0

Please sign in to comment.