Skip to content

Commit

Permalink
fix(pg): disable chugsplash by default in the hardhat run task
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-goldman committed Nov 19, 2022
1 parent fc8cfd3 commit f1e6f8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-apes-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/plugins': patch
---

Disable ChugSplash by default in the Hardhat "run" task
10 changes: 5 additions & 5 deletions packages/plugins/src/hardhat/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1285,20 +1285,20 @@ task(TASK_TEST)

task(TASK_RUN)
.addFlag(
'disableChugsplash',
"Completely disable all of ChugSplash's activity."
'enableChugsplash',
'Deploy all ChugSplash configs before executing your script.'
)
.setAction(
async (
args: {
disableChugsplash: boolean
enableChugsplash: boolean
noCompile: boolean
},
hre: any,
runSuper
) => {
const { disableChugsplash, noCompile } = args
if (!disableChugsplash) {
const { enableChugsplash, noCompile } = args
if (enableChugsplash) {
const signer = hre.ethers.provider.getSigner()
await deployChugSplashPredeploys(hre, signer)
await deployAllChugSplashConfigs(hre, true, '', noCompile)
Expand Down

0 comments on commit f1e6f8c

Please sign in to comment.