This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Lists all contracts that return stack too deep | |
| while IFS= read -r -d '' file; do | |
| solc $(forge re) "$file" --bin 2>&1 | grep -q "Stack too deep" | |
| if [ $? -eq 0 ]; then | |
| echo "Stack too deep error found in $file" | |
| fi | |
| done < <(find . -type f -name "*.sol" -print0) |
OlderNewer