Skip to content

Commit 2183aa6

Browse files
committed
Add --verify flag to deployment command and update README for verification instructions
1 parent 7e6cb14 commit 2183aa6

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ steps:
7373
from_secret: deployer-prod-privatekey
7474
commands:
7575
- cd packages/smart-contract
76-
- npm run deploy -- --network bellecour
76+
- npm run deploy -- --network bellecour --verify
7777
when:
7878
target:
7979
- smart-contract-deploy-prod

packages/smart-contract/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ If no network is specified, the local Hardhat network will be used by default.
1616

1717
**Note:** This deployment uses the `createX` factory through Hardhat Ignition. To modify the deployment address, update the `salt` value in the `hardhat.config.json` file.
1818

19+
## Verifying the Contract
20+
21+
To verify the contract during deployment, include the `--verify` option in the deployment command:
22+
23+
```sh
24+
npm run deploy -- --network avalancheFuji --verify
25+
```
26+
27+
If the contract has already been deployed, you can verify it separately using the following command:
28+
29+
```sh
30+
npx hardhat ignition verify chain-43113
31+
```
32+
33+
This ensures the contract's source code is verified on the blockchain explorer for the specified network.
34+
1935
## Deployed Contract Address
2036

2137
Refer to the `../../environments/environments.json` file to find the deployed contract address for the respective environment.

packages/smart-contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"scripts": {
55
"compile": "hardhat compile && npm run artifact-to-abis",
6-
"deploy": "hardhat ignition deploy ignition/modules/DataProtector.ts --verify",
6+
"deploy": "hardhat ignition deploy ignition/modules/DataProtector.ts",
77
"verify": "hardhat verify",
88
"test": "hardhat test",
99
"artifact-to-abis": "node tools/artifacts-to-abis.mjs",

0 commit comments

Comments
 (0)