24 lines
440 B
Bash
Raw Normal View History

#!/bin/bash
set -e
2023-01-30 14:35:14 +01:00
if command -v echidna-test; then
fuzz () {
echidna-test . \
--config fuzzing/echidna.yaml \
--contract $1
}
else
fuzz () {
docker run \
--rm \
-v `pwd`:/src ghcr.io/crytic/echidna/echidna \
bash -c \
"cd /src && echidna-test . \
--config fuzzing/echidna.yaml \
--crytic-args --ignore-compile \
--contract $1"
}
fi
fuzz FuzzMarketplace