Skip to content

Commit

Permalink
compile only upon restart
Browse files Browse the repository at this point in the history
  • Loading branch information
sirnicolaz committed Nov 10, 2023
1 parent 69242cc commit d820f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ task("deploy:dao", "Deploy DAO")
.addFlag("restart", "Start a new deployment from scratch")
.setAction(
async ({ verify, restart }: { verify: boolean; restart: boolean }, hre) => {
await hre.run("compile", { force: true });
if (restart) await hre.run("compile", { force: true });
const neokingdom = await NeokingdomDAOHardhat.initialize(hre, {
verifyContracts: verify,
verbose: true,
Expand Down

0 comments on commit d820f99

Please sign in to comment.