331 . Create a new directory and cd into it.
44
55 ``` bash
6+ cd ~ /
67 mkdir cdk-validium
78 cd cdk-validium/
89 ```
@@ -35,27 +36,15 @@ npm install
3536
3637 ` ` ` bash
3738 cp .env.example .env
38- nano .env
39- ` ` `
40-
41- 2. Add the environment variables.
42-
43- ` ` ` bash
44- MNEMONIC=" <generated mnemonic>" # see instructions below in step 3
45- INFURA_PROJECT_ID="<INFURA_PROJECT_ID>" # Generate a project id on [Infura](https://www.infura.io/)
46- ETHERSCAN_API_KEY="<ETHERSCAN_API_KEY>" # Generate an API key on [Etherscan](https://etherscan.io)
4739 ` ` `
4840
49- !!! info
50- Check our documentation if you want to [use a different node provider](deploy-contracts.md#use-a-different-node-provider).
51-
52- 3. Generate a new mnemonic using ` cast` .
41+ 2. Generate a new mnemonic using ` cast` .
5342
5443 ` ` ` bash
5544 cast wallet new-mnemonic --words 12
5645 ` ` `
5746
58- !!! important
47+ !!! tip
5948 If the command ` new-mnemonic` is not found, update foundry with ` foundryup` and try again.
6049
6150 The output should look something like this:
@@ -69,14 +58,24 @@ npm install
6958 Private key: 0x3b01870a8449ada951f59c0275670bea1fc145954ee7cb1d46f7d21533600726
7059 ` ` `
7160
72- 4. Copy and paste the newly generated ` Phrase` into the ` MNEMONIC` field inside ` cdk-validium-contracts-0.0.2/.env`
61+ 3. Add the environment variables to the ` .env` file.
62+
63+ ` ` ` bash
64+ nano .env
65+ MNEMONIC=" <generated mnemonic>" # copy/paste the generated Phrase
66+ INFURA_PROJECT_ID="<INFURA_PROJECT_ID>" # Generate a project id on [Infura](https://www.infura.io/)
67+ ETHERSCAN_API_KEY="<ETHERSCAN_API_KEY>" # Generate an API key on [Etherscan](https://etherscan.io)
68+ ` ` `
69+
70+ !!! info
71+ Check our documentation if you want to [use a different node provider](deploy-contracts.md#use-a-different-node-provider).
7372
74- 5 . Send 2 Sepolia ETH to the generated address.
73+ 4 . Send 2 Sepolia ETH to the generated address.
7574
76- 6 . Add the following variables to ` /var/tmp/.env` .
75+ 5 . Add the following variables to ` /var/tmp/cdk /.env` .
7776
7877 ` ` ` bash
79- # /tmp/cdk/.env
78+ nano /var /tmp/cdk/.env
8079 TEST_ADDRESS=< the address generated by cast>
8180 TEST_PRIVATE_KEY=< the private key generated by cast>
8281 L1_URL=https://sepolia.infura.io/v3/< YOUR INFURA PROJECT ID>
0 commit comments