mirror of
https://github.com/crytic/slither.git
synced 2026-10-12 02:12:39 +00:00
23 lines
356 B
Bash
Executable File
23 lines
356 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
shopt -s extglob
|
|
|
|
### Test slither-flat
|
|
solc-select use 0.8.19 --always-install
|
|
|
|
cd examples/flat || exit 1
|
|
|
|
if ! slither-flat b.sol; then
|
|
echo "slither-flat failed"
|
|
exit 1
|
|
fi
|
|
|
|
SUFFIX="@(sol)"
|
|
if ! solc "crytic-export/flattening/"*$SUFFIX; then
|
|
echo "solc failed on flattened files"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|