Skip to content

Commit

Permalink
feat: add mythril (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
phenix3443 authored Aug 25, 2023
1 parent fd8b9ec commit cec714c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ out
cache
broadcast
.vscode/slither-results.json

# mythril
bin
4 changes: 1 addition & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ solc-select install 0.8.18
solc-select use 0.8.18

#mythril
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default nightly
pip3 install mythril
docker pull mythril/myth
4 changes: 2 additions & 2 deletions mythril.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"remappings": [
"ds-test/=lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"@openzeppelin/contracts=node_modules/@openzeppelin/contracts",
"@openzeppelin/contracts-upgradeable=node_modules/@openzeppelin/contracts-upgradeable"
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/"
],
"optimizer": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "forge test",
"lint:sol": "solhint src/**/*.sol script/**/*.sol test/**/*.sol",
"slither": "slither .",
"mythril": "myth analyze src/**/*.sol script/**/*.sol",
"mythril": "docker run -v $(pwd):/code --workdir /code mythril/myth analyze src/*.sol --solc-json mythril.config.json",
"format:sol": "prettier --write --plugin=prettier-plugin-solidity src/**/*.sol script/**/*.sol test/**/*.sol",
"init": "sh init.sh"
},
Expand Down

0 comments on commit cec714c

Please sign in to comment.