You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ $ npm install
70
70
71
71
**Note:** these smart contracts are not designed to be library contracts, and you can fork these contracts locally to modify them yourself, rather than importing them directly by a git link.
72
72
73
-
If you encounter a dependency conflict during installation, this is due to the version number of the hardhat-deploy-ethers module being incompatible with the @nomiclabs/hardhat-waffle required @nomiclabs/hardhat-ethers module version number. Make sure to add `--force` flag to `$ npm install` to resolve this problem.
73
+
If you encounter a dependency conflict during installation, this is due to the version number of the `hardhat-deploy-ethers` module being incompatible with the `@nomiclabs/hardhat-waffle` required `@nomiclabs/hardhat-ethers` module version number. Make sure to add `--force` flag to `$ npm install` to resolve this problem.
74
74
75
75
### Membership NFT
76
76
@@ -84,6 +84,25 @@ After deployment, you need to call the `setupGovernor` method to release importa
84
84
85
85
Run the `npm run deploy:test` command to deploy the contract, or you can refer to the `. /tests` folder for test cases.
86
86
87
+
### Work with Web UI
88
+
89
+
To use the contract with the Web UI, we need to run the hardhat network locally and export the `ABI` of the contracts in the directory where the UI is located, which by default is: `../website/contracts/`.
90
+
91
+
To run the hardhat network locally with contracts deployed:
92
+
93
+
```bash
94
+
$ npm start
95
+
$ npm run deploy:localhost
96
+
```
97
+
98
+
And, add the `MulticallV1` contract address to `.env.local` of the Web UI project without `0x` prefix. (Make sure to replace with the address you just deployed, not the sample one)
0 commit comments