You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
compact-lint: same-named contracts share one artifact directory #229
compact-lint fill-constraints names a contract's artifact directory after the file stem alone, and reading a measurement back does not compare the recorded source. Two self-compiled files with one name in different directories both write <artifacts>/<Stem>/circuit-info.json, so the last compile wins. A later fill-constraints --no-compile then writes that contract's values into both files and exits 0.
Latent: no two contracts in compact-contracts share a file name today.
Direction: key the directory by the normalized source path, or reject two sources that map to one directory, and check the recorded source before applying a measurement.
🔢 Code to reproduce bug
With constraints.self = ["**/*.compact"], add a/Vault.compact and b/Vault.compact holding different circuits. Run compact-lint fill-constraints, then compact-lint fill-constraints --no-compile.
Activity