Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config for remapping #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ Featuring flash loans, price oracles, governance, NFTs, lending pools, smart con

Created by [@tinchoabbate](https://twitter.com/tinchoabbate)

## Usage

You will need [Echidna](https://github.com/crytic/echidna) installed before proceeding.

Install the dependencies via `yarn install`.

```sh
git clone https://github.com/crytic/damn-vulnerable-defi-echidna
cd damn-vulnerable-defi-echidna
yarn install
echidna-test <contract_path> --contract <contract_name> --config echidna-config.yaml
```

## Play

Visit [damnvulnerabledefi.xyz](https://damnvulnerabledefi.xyz)
Expand Down
7 changes: 7 additions & 0 deletions echidna-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# allow the @openzeppelin/contracts to be remapped to the node_modules folder
# use --config echidna-config.yaml to use this config file
cryticArgs:
[
"--solc-remaps",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
]