Skip to content

Commit 9fb5abb

Browse files
authored
improving zombienet guide (#280)
1 parent 2a8572a commit 9fb5abb

File tree

1 file changed

+8
-44
lines changed

1 file changed

+8
-44
lines changed

Diff for: docs/modules/ROOT/pages/guides/testing_with_zombienet.adoc

+8-44
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ error[E0635]: unknown feature `stdsimd`
6161
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
6262
```
6363
64-
run the below command for every version of the `ahash`:
64+
`Cd` into the `polkadot-sdk` directory (the path should be visible on the error message), and run the below command to update `ahash`:
6565
6666
```bash
67-
cargo update -p ahash
67+
cargo update -p ahash@0.7.6
6868
```
6969
====
7070
+
@@ -95,7 +95,7 @@ cargo build --release --features="async-backing"
9595
+
9696
image::alice-direct-link.png[Alice Direct Link]
9797

98-
. open the link with Chrome. [`polkadot.js.org/apps`](http://polkadot.js.org/apps) As of 2024 July, it doesn’t work on Safari and Brave. And it might be buggy in Firefox. So, open it with Chrome.
98+
. Open the link with Chrome: link:https://polkadot.js.org/apps[PolkadotJS]. As of 2024 July, it doesn’t work on Safari and Brave, and it is buggy on Firefox.
9999
. Reserve a `ParaId` on Zombienet:
100100
.. Go to `Network` > `Parachains`
101101
.. Go to `Parathreads` tab
@@ -106,11 +106,7 @@ image::alice-direct-link.png[Alice Direct Link]
106106
.. Generate a plain chainspec:
107107
+
108108
```bash
109-
./target/release/parachain-template-node build-spec --disable-default-bootnode > plain-parachain-chainspec.json
110-
```
111-
+
112-
```bash
113-
./parachain-template-node build-spec --disable-default-bootnode > plain-parachain-chainspec.json
109+
./target/release/evm-template-node build-spec --disable-default-bootnode > plain-parachain-chainspec.json
114110
```
115111

116112
.. Edit the chainspec:
@@ -120,31 +116,19 @@ image::alice-direct-link.png[Alice Direct Link]
120116
.. Generate a raw chainspec:
121117
+
122118
```bash
123-
./target/release/parachain-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json
124-
```
125-
+
126-
```bash
127-
./parachain-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json
119+
./target/release/evm-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json
128120
```
129121

130122
.. Generate the genesis state:
131123
+
132124
```bash
133-
./target/release/parachain-template-node export-genesis-state --chain raw-parachain-chainspec.json > genesis-state
134-
```
135-
+
136-
```bash
137-
./parachain-template-node export-genesis-state --chain raw-parachain-chainspec.json > genesis-state
125+
./target/release/evm-template-node export-genesis-state --chain raw-parachain-chainspec.json > genesis-state
138126
```
139127

140128
.. Generate the validation code:
141129
+
142130
```bash
143-
./target/release/parachain-template-node export-genesis-wasm --chain raw-parachain-chainspec.json > genesis-wasm
144-
```
145-
+
146-
```bash
147-
./parachain-template-node export-genesis-wasm --chain raw-parachain-chainspec.json > genesis-wasm
131+
./target/release/evm-template-node export-genesis-wasm --chain raw-parachain-chainspec.json > genesis-wasm
148132
```
149133

150134
. Registering the Parachain:
@@ -168,7 +152,7 @@ image::zombie-chain-spec.png[Zombie Chain Spec]
168152
* be sure to clear your storage if you were running a node before
169153
+
170154
```rust
171-
./target/release/parachain-template-node \
155+
./target/release/evm-template-node \
172156
--alice \
173157
--collator \
174158
--force-authoring \
@@ -182,26 +166,6 @@ image::zombie-chain-spec.png[Zombie Chain Spec]
182166
--port 30343 \
183167
--rpc-port 9977
184168
```
185-
+
186-
```rust
187-
./parachain-template-node \
188-
--alice \
189-
--collator \
190-
--force-authoring \
191-
--chain raw-parachain-chainspec.json \
192-
--base-path storage/alice \
193-
--port 40333 \
194-
--rpc-port 8844 \
195-
-- \
196-
--execution wasm \
197-
--chain /var/folders/kl/404s241d4_93gz8mh4cg4cz80000gn/T/zombie-a91587a2ece24961799f824da68f45a8_-9146-fqbCFiePyOHm/bob/cfg/rococo-local.json \
198-
--port 30343 \
199-
--rpc-port 9977
200-
```
201-
+
202-
```rust
203-
--chain /var/folders/kl/404s241d4_93gz8mh4cg4cz80000gn/T/zombie-a91587a2ece24961799f824da68f45a8_-9146-fqbCFiePyOHm/bob/cfg/rococo-local.json
204-
```
205169

206170
. your node should be running without any problem, and should see block production in your node terminal!
207171
+

0 commit comments

Comments
 (0)