Skip to content

Conversation

@shaspitz
Copy link
Contributor

Previously bugs like #173 would not be caught by ci, because forge thinks scripts reside in the script directory by default. Our script directory is actually scripts as addressed in this PR. Now forge test, forge build etc. will fail as expected when one of the solidity scripts doesn't build.

import "../contracts/PreConfCommitmentStore.sol";
import "../contracts/Oracle.sol";
import "../contracts/Whitelist.sol";
import "../contracts/validator-registry/ValidatorRegistryV1.sol";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dep is unneeded for core deployment

@@ -1,35 +1,38 @@
// SPDX-License-Identifier: BSL 1.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes necessary to make this script build and pass ci

@shaspitz shaspitz requested review from Mikelle, ckartik and mrekucci June 26, 2024 19:15
@shaspitz shaspitz merged commit 32da5a3 into main Jun 26, 2024
@shaspitz shaspitz deleted the fix-forge-build branch June 26, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants