Skip to content

Commit

Permalink
add hardhat-deploy plugin​ to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocastignoli committed Oct 30, 2023
1 parent 758f951 commit 70ed10d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/3. Verification/1.howToVerify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 70ed10d

Please sign in to comment.