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.
26 lines
597 B
26 lines
597 B
#!/usr/bin/env bash
|
|
|
|
### Test etherscan integration
|
|
|
|
mkdir etherscan
|
|
cd etherscan || exit 255
|
|
|
|
wget -O solc-0.4.25 https://github.com/ethereum/solidity/releases/download/v0.4.25/solc-static-linux
|
|
chmod +x solc-0.4.25
|
|
|
|
slither 0x7F37f78cBD74481E593F9C737776F7113d76B315 --solc "./solc-0.4.25" --etherscan-apikey "$GITHUB_ETHERSCAN"
|
|
|
|
if [ $? -ne 5 ]
|
|
then
|
|
echo "Etherscan test failed"
|
|
exit 255
|
|
fi
|
|
|
|
slither rinkeby:0xFe05820C5A92D9bc906D4A46F662dbeba794d3b7 --solc "./solc-0.4.25" --etherscan-apikey "$GITHUB_ETHERSCAN"
|
|
|
|
if [ $? -ne 70 ]
|
|
then
|
|
echo "Etherscan test failed"
|
|
exit 255
|
|
fi
|
|
|
|
|