From ec56e5cfb9dd0b640f8aca1fb0f18c8cd062bde4 Mon Sep 17 00:00:00 2001 From: Noah Passalacqua Date: Fri, 13 Oct 2023 09:49:48 -0600 Subject: [PATCH] skip automatic verification on hardhat network --- packages/plugin-hardhat/src/verify-proxy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/plugin-hardhat/src/verify-proxy.ts b/packages/plugin-hardhat/src/verify-proxy.ts index d159dd643..b0e443e3f 100644 --- a/packages/plugin-hardhat/src/verify-proxy.ts +++ b/packages/plugin-hardhat/src/verify-proxy.ts @@ -64,6 +64,10 @@ const verifiableContracts = { }; export async function runVerify(hre: HardhatRuntimeEnvironment, address: string, constructorArguments: unknown[] = []) { + if (hre.network.name === HARDHAT_NETWORK_NAME) { + // Don't verify on hardhat network + return; + } try { await hre.run(TASK_VERIFY_VERIFY, { address,