Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3305 from NomicFoundation/buildinfo-names-are-not…
…-deterministic-hh-1230 Sort files when creating the solc input
- Loading branch information
Showing
10 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"hardhat": patch | ||
--- | ||
|
||
Fixed an issue that was causing build-info file names to not be deterministic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/hardhat-core/test/fixture-projects/consistent-build-info-names/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
artifacts/ | ||
cache/ |
6 changes: 6 additions & 0 deletions
6
packages/hardhat-core/test/fixture-projects/consistent-build-info-names/contracts/A.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pragma solidity ^0.7.0; | ||
|
||
import "dependency/contracts/Dep1.sol"; | ||
import "dependency/contracts/Dep2.sol"; | ||
|
||
contract A {} |
5 changes: 5 additions & 0 deletions
5
packages/hardhat-core/test/fixture-projects/consistent-build-info-names/contracts/B.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity ^0.7.0; | ||
|
||
import "dependency/contracts/Dep1.sol"; | ||
|
||
contract B {} |
3 changes: 3 additions & 0 deletions
3
packages/hardhat-core/test/fixture-projects/consistent-build-info-names/hardhat.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
solidity: "0.7.3", | ||
}; |
1 change: 1 addition & 0 deletions
1
...t/fixture-projects/consistent-build-info-names/node_modules/dependency/contracts/Dep1.sol
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...t/fixture-projects/consistent-build-info-names/node_modules/dependency/contracts/Dep2.sol
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...re/test/fixture-projects/consistent-build-info-names/node_modules/dependency/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.