Skip to content

Commit 8fe0211

Browse files
committed
Fix some leftover echidna-test -> echidna
1 parent daa4228 commit 8fe0211

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

program-analysis/echidna/advanced/collecting-a-corpus.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This small example forces Echidna to find certain values to change a state varia
3333
We can run Echidna to verify this:
3434

3535
```
36-
echidna-test magic.sol
36+
echidna magic.sol
3737
...
3838
3939
echidna_magic_values: passed! 🎉
@@ -60,7 +60,7 @@ corpusDir: "corpus-magic"
6060
Now we can run our tool and check the collected corpus:
6161
6262
```
63-
echidna-test magic.sol --config config.yaml
63+
echidna magic.sol --config config.yaml
6464
```
6565

6666
Echidna still cannot find the correct magic value. We can verify where it gets stuck reviewing the `corpus-magic/covered.*.txt` file:
@@ -145,7 +145,7 @@ cp corpus-magic/coverage/2712688662897926208.txt corpus-magic/coverage/new.txt
145145
We will modify `new.txt` to call `magic(42,129,333,0)`. Now, we can re-run Echidna:
146146

147147
```
148-
echidna-test magic.sol --config config.yaml
148+
echidna magic.sol --config config.yaml
149149
...
150150
echidna_magic_values: failed!💥
151151
Call sequence:

program-analysis/echidna/advanced/end-to-end-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ cryticArgs: ["--truffle-build-directory", "app/src/contracts/"] # needed by driz
156156
Then, running Echidna shows the results immediately:
157157
158158
```
159-
echidna-test . --contract E2E --config echidna.yaml
159+
echidna . --contract E2E --config echidna.yaml
160160
...
161161
crytic_const_storage: failed!💥
162162
Call sequence:
163163
(0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c).set(0) from: 0x0000000000000000000000000000000000010000
164164
```
165165
166-
For this last step, make sure you are using `.` as a target for `echidna-test`. If you use the path to the `E2E.sol` file instead, then Echidna will not be able get information from all the deployed contracts to call the `set(uint256)` function and the property will never fail.
166+
For this last step, make sure you are using `.` as a target for `echidna`. If you use the path to the `E2E.sol` file instead, then Echidna will not be able get information from all the deployed contracts to call the `set(uint256)` function and the property will never fail.
167167

168168
## Key considerations:
169169

0 commit comments

Comments
 (0)