Skip to content

Commit

Permalink
chore(website): Verify contract fix tab contents and remove headers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWentz authored Jun 27, 2023
1 parent a55b392 commit 00a5a97
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions packages/website/pages/docs/guides/verify-a-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ This guide will help get your contract verified on Taiko!
<Tabs items={["Hardhat", "Blockscout", "Foundry"]} defaultIndex="0">
<Tab>
<Steps>
### Add Etherscan config to Hardhat config
<strong>
1. Add Etherscan config to Hardhat config
</strong>
<Callout type="info">
Even though the config is called `etherscan`, it is used for all explorers that support the Etherscan API (including Blockscout). The API key is set to a dummy value `42069` because it is not used for Blockscout verification.
</Callout>
Expand Down Expand Up @@ -54,23 +56,26 @@ This guide will help get your contract verified on Taiko!
export default config;
```

### Run the verify task
<strong>
2. Run the verify task
</strong>
Run the verify task, but replace `DEPLOYED_CONTRACT_ADDRESS` and `"Constructor argument 1"` with the address of your deployed contract and the constructor arguments you used when deploying the contract.

```sh
npx hardhat verify --network taiko DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
```

### View your verified contract on Blockscout
<strong>
3. View your verified contract on Blockscout
</strong>
Check the [Taiko block explorer](https://explorer.test.taiko.xyz) link from the output to see your contract was verified.

### Follow Blockscout's official guide
Follow Blockscout's [official guide](https://docs.blockscout.com/for-users/verifying-a-smart-contract) to verify your contract on Taiko's blockscout explorers.
</Steps>
</Steps>
</Tab>
<Tab>
Follow Blockscout's [official guide](https://docs.blockscout.com/for-users/verifying-a-smart-contract) to verify your contract on Taiko's blockscout explorers.
</Tab>
<Tab>
<Callout type="warning">
Foundry's `verify-contract` command is currently broken with Blockscout (see why [here](https://github.com/foundry-rs/foundry/issues/4909)). Please check the Hardhat or Blockscout steps to verify your contract.
Foundry's `verify-contract` command is currently broken with Blockscout (see why [here](https://github.com/foundry-rs/foundry/issues/4909)). Please check the Hardhat or Blockscout steps to verify your contract.
</Callout>
</Tab>
</Tabs>

0 comments on commit 00a5a97

Please sign in to comment.