Files
slither/scripts/ci_test_flat.sh
2026-01-06 18:58:41 +01:00

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