diff --git a/hardhat.config.ts b/hardhat.config.ts index e4537ad..6ef3daf 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -8,8 +8,8 @@ import { HttpNetworkUserConfig } from 'hardhat/types' dotenv.config() import './tasks/deploy' -import './tasks/mastercopy-deploy' import './tasks/mastercopy-extract' +import './tasks/mastercopy-deploy' import './tasks/mastercopy-verify' const { INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY } = process.env @@ -87,6 +87,10 @@ export default { ...sharedNetworkConfig, url: 'https://rpc-mainnet.maticvigil.com', }, + sepolia: { + ...sharedNetworkConfig, + url: `https://sepolia.infura.io/v3/${INFURA_KEY}`, + }, }, etherscan: { apiKey: ETHERSCAN_API_KEY, diff --git a/package.json b/package.json index 5dc7fed..cf97e0a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "test": "hardhat test", "coverage": "hardhat coverage", "deploy": "yarn hardhat deploy", - "mastercopy:extract": "yarn hardhat mastercopy:extract --network", + "mastercopy:extract": "yarn hardhat mastercopy:extract", "mastercopy:deploy": "yarn hardhat mastercopy:deploy --network", "mastercopy:verify": "yarn hardhat mastercopy:verify --network", "prepack": "yarn run clean && yarn run build", diff --git a/tasks/mastercopy-extract.ts b/tasks/mastercopy-extract.ts index 0c9df23..d31cce2 100644 --- a/tasks/mastercopy-extract.ts +++ b/tasks/mastercopy-extract.ts @@ -12,7 +12,7 @@ task( ) .addParam( 'mastercopyVersion', - 'The version used to insert into the Artifacts object', + 'The extracted artifact version', undefined, types.string, true diff --git a/tasks/mastercopy-verify.ts b/tasks/mastercopy-verify.ts index 424aa5d..1ffb701 100644 --- a/tasks/mastercopy-verify.ts +++ b/tasks/mastercopy-verify.ts @@ -4,7 +4,7 @@ import { verifyMastercopies } from 'zodiac-core' const { ETHERSCAN_API_KEY } = process.env task( - 'mastercopies:verify', + 'mastercopy:verify', 'Verifies all mastercopies from the artifacts file, in the block explorer corresponding to the current network' ).setAction(async (_, hre) => { if (!ETHERSCAN_API_KEY) { @@ -12,7 +12,7 @@ task( } await verifyMastercopies({ - apiUrl: String(hre.network.config.chainId), + apiUrl: String((await hre.ethers.provider.getNetwork()).chainId), apiKey: ETHERSCAN_API_KEY, }) })