diff --git a/hardhat.config.ts b/hardhat.config.ts index de0254a..05204e0 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -5,7 +5,7 @@ import 'hardhat-gas-reporter' import dotenv from 'dotenv' import { HttpNetworkUserConfig } from 'hardhat/types' -import './tasks/deploy-instance' +import './tasks/deploy' import './tasks/deploy-mastercopy' dotenv.config() diff --git a/package.json b/package.json index 405972f..441ea16 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build": "hardhat compile", "test": "hardhat test", "coverage": "hardhat coverage", - "deploy": "yarn hardhat deploy:mastercopy --network", + "deploy": "yarn hardhat deploy", + "deploy:mastercopy": "yarn hardhat deploy:mastercopy --network", "prepack": "yarn run clean && yarn run build", "prepare": "yarn run clean && yarn run build", "lint": "yarn lint:sol && yarn lint:ts", diff --git a/tasks/deploy-instance.ts b/tasks/deploy.ts similarity index 93% rename from tasks/deploy-instance.ts rename to tasks/deploy.ts index 873983f..95d5960 100644 --- a/tasks/deploy-instance.ts +++ b/tasks/deploy.ts @@ -1,6 +1,6 @@ import { task, types } from 'hardhat/config' -task('deploy:instance', 'Deploys a Delay modifier') +task('deploy', 'Deploys a Delay modifier') .addParam('owner', 'Address of the owner', undefined, types.string) .addParam( 'avatar', @@ -41,6 +41,10 @@ task('deploy:instance', 'Deploys a Delay modifier') console.log(`\x1B[32m✔ Instance deployed to: ${address} 🎉\x1B[0m `) + if (hre.network.name == 'hardhat') { + return + } + console.log('Waiting 1 minute before etherscan verification start...') // Etherscan needs some time to process before trying to verify. await new Promise((resolve) => setTimeout(resolve, 60000))