Skip to content

Commit 318cd2b

Browse files
update after review
1 parent 32300a8 commit 318cd2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/cdk/how-to/integrate-da.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This section shows you how to create a custom CDK validium DAC contract.
1515

1616
3. Run `npm i` from the root.
1717

18-
4. Go to the [validium smart contracts directory](https://github.com/0xPolygonHermez/zkevm-contracts/tree/feature/etrog/contracts/v2/consensus/validium).
18+
4. Go to the [`contracts/v2/consensus/validium`](https://github.com/0xPolygonHermez/zkevm-contracts/tree/feature/etrog/contracts/v2/consensus/validium) directory.
1919

2020
!!! tip
2121
- Until further notice, these contracts run on the [etrog release](https://polygon.technology/blog/polygon-zkevm-the-etrog-upgrade-is-live-on-mainnet).
@@ -122,8 +122,8 @@ This section shows you how to deploy the Docker image containing your custom DAC
122122
6. Build the image with the following commands:
123123
124124
```sh
125-
npx hardhat compile
126-
npm run docker:contracts
125+
sudo npx hardhat compile
126+
sudo npm run docker:contracts
127127
```
128128
129129
7. Tag the image with the following command, where `XXXX` is custom:
@@ -144,10 +144,11 @@ This section shows you how to set up your CDK node that sends and receives data
144144
const (
145145
// DataAvailabilityCommittee is the DAC protocol backend
146146
DataAvailabilityCommittee DABackendType = "DataAvailabilityCommittee"
147-
DataAvailabilityCommittee DABackendType = "MyAvailabilityProtocol"
148147
)
149148
```
150149
150+
where `DataAvailabilityCommittee` matches the `_PROTOCOL_NAME` see in the [Set up contracts](#set-up-contracts) section.
151+
151152
3. _OPTIONAL_: Add a config struct to the new package inside the main config.go file so that your package can receive custom configurations using the node’s main config file.
152153
153154
4. Instantiate your package and use it to create the main data availability instance, as done in the Polygon implementation.

0 commit comments

Comments
 (0)