From 017ae81152c3a34be7f5713dbd850955e844b2b1 Mon Sep 17 00:00:00 2001 From: isabelle Date: Fri, 17 Nov 2023 18:30:13 +0900 Subject: [PATCH] update hardhat instructions --- .../docs/en/developers/verifying-smart-contracts.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/content/docs/en/developers/verifying-smart-contracts.mdx b/src/content/docs/en/developers/verifying-smart-contracts.mdx index e3c4231c8..b76b2d1b4 100644 --- a/src/content/docs/en/developers/verifying-smart-contracts.mdx +++ b/src/content/docs/en/developers/verifying-smart-contracts.mdx @@ -29,10 +29,15 @@ Most smart contract tooling has plugins for verifying your contracts easily on E | Scrollscan | https://api.scrollscan.com/api | https://api-sepolia.scrollscan.com/api | | Blockscout | https://blockscout.scroll.io/api | https://sepolia-blockscout.scroll.io/api | + + ### Hardhat -First, modify `hardhat.config.ts` to point to Scroll's RPC and `sepolia-blockscout.scroll.io/api`. A dummy `apiKey` value is required, but anything works for its value. +Modify `hardhat.config.ts` to point to Scroll's RPC and block explorer API. For Blockscout, a dummy `apiKey` value is required, but anything works for its value. For Scrollscan, use your own API key. +For example, if you are using Scroll Sepolia on Blockscout, your config will look like this: ```javascript ... @@ -95,8 +100,6 @@ Refer to the [Foundry documentation](https://book.getfoundry.sh/reference/forge/ #### Scrollscan -You will need to [register an account](https://scrollscan.com/register) to create an API key. The same key can be used for both Scroll Sepolia and mainnet. After creating your API key, please wait a few minutes before it comes into effect. - ```bash forge verify-contract \ --verifier-url https://api-sepolia.scrollscan.com/api \