Skip to content

Commit

Permalink
update main contract path in hardhat local exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcador committed Feb 11, 2021
1 parent 51db421 commit 3c6de93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hardhat/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ func (dp *DeploymentProvider) GetContracts(
sources[sourcePath] = true

for path, _ := range hardhatMeta.Sources {
if strings.Contains(path, contract.Name) {
contract.SourcePath = path
continue
}
if !strings.Contains(path, "@") {
sources[path] = false
continue
Expand Down

0 comments on commit 3c6de93

Please sign in to comment.