mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
405 B
23 lines
405 B
#!/usr/bin/env bash
|
|
|
|
### Test Dapp integration
|
|
|
|
mkdir test_dapp
|
|
cd test_dapp
|
|
|
|
curl https://nixos.org/nix/install | sh
|
|
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
|
git clone --recursive https://github.com/dapphub/dapptools $HOME/.dapp/dapptools
|
|
nix-env -f $HOME/.dapp/dapptools -iA dapp seth solc hevm ethsign
|
|
|
|
dapp init
|
|
|
|
slither .
|
|
|
|
if [ $? -eq 23 ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Truffle test failed"
|
|
exit -1
|
|
|