From d5fb7b28cffcc8c8c9a8d8b49df5a0fc067fa55e Mon Sep 17 00:00:00 2001 From: Brendan Graetz Date: Wed, 7 Feb 2024 16:04:57 +0800 Subject: [PATCH] docs: minor - highlight "verify:sourcify" subtask, based on feedback from @schaable - Ref: https://github.com/NomicFoundation/hardhat/issues/4776#issuecomment-1917272500 --- packages/hardhat-verify/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/hardhat-verify/README.md b/packages/hardhat-verify/README.md index 17f58efd83..d3931be597 100644 --- a/packages/hardhat-verify/README.md +++ b/packages/hardhat-verify/README.md @@ -230,6 +230,16 @@ await hre.run("verify:verify", { If the verification is not successful, an error will be thrown. +Note that the `"verify:verify"` subtask will *always* run the etherscan verifier, even when you have the following in your hardhat config file: + +```js +etherscan: { + enabled: false, +} +``` + +If you wish to run the sourcify verifier only, use the `"verify:sourcify"` subtask instead. + #### Providing libraries from a script or task If your contract has libraries with undetectable addresses, you may pass the libraries parameter with a dictionary specifying them: