cairo-snforge-troubleshooting
Installation
SKILL.md
Cairo snforge Troubleshooting
Overview
Guide debugging snforge test failures, particularly Sierra compilation errors that occur after successful Cairo compilation.
Quick Use
- Read
references/common-errors.mdbefore diagnosing. - Check
Scarb.tomlsettings first -enable-gas = falsecauses many issues. - Verify toolchain version compatibility (snforge, universal-sierra-compiler, Cairo).
- Generic implementations need proper trait bounds.
Response Checklist
- If error mentions "cycle during cost computation": check
enable-gassetting. - If error mentions "universal-sierra-compiler": check version compatibility.
- If generic code fails: ensure
+Drop<T>,+Copy<T>bounds and struct derives. - If
scarb buildpasses butscarb testfails: issue is test-specific compilation.