From 70ed10d0b037514f53d25ae89f421df5cc36785f Mon Sep 17 00:00:00 2001 From: Marco Castignoli Date: Mon, 30 Oct 2023 11:40:44 +0100 Subject: [PATCH] =?UTF-8?q?add=20hardhat-deploy=20plugin=E2=80=8B=20to=20d?= =?UTF-8?q?ocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/3. Verification/1.howToVerify.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/3. Verification/1.howToVerify.mdx b/docs/3. Verification/1.howToVerify.mdx index 22c761e..1025c40 100644 --- a/docs/3. Verification/1.howToVerify.mdx +++ b/docs/3. Verification/1.howToVerify.mdx @@ -49,6 +49,24 @@ forge verify-check 0x55f7d4279CE387067f12561e7E0c194f5186cFba \ ## Hardhat +### hardhat-verify plugin + +The Hardhat plugin [@nomicfoundation/hardhat-verify](https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify) has official Sourcify support. + +In order to enable Sourcify support, add this to `hardhat.config.js`: + +``` +sourcify: { + enabled: true, +} +``` + +After deploying your contracts you can verify on Sourcify with: + +``` +npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS +``` + ### hardhat-deploy plugin The Hardhat plugin [@wighawag/hardhat-deploy](https://github.com/wighawag/hardhat-deploy#5-hardhat-sourcify) has Sourcify support. After deploying your contracts with the plugin you can easily verify your contracts with: