Skip to content

Commit 14aa2b8

Browse files
committed
chore: add depth check at build.rs
1 parent b4ced6e commit 14aa2b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ fn main() {
5656
.parse()
5757
.expect("SEMAPHORE_DEPTH must be a valid usize");
5858

59+
if depth > 32 {
60+
panic!("The tree depth must be less than 32.");
61+
}
62+
5963
download_semaphore_artifacts(depth).expect("Failed to download artifacts");
6064

6165
rust_witness::transpile::transpile_wasm("./zkey".to_string());

0 commit comments

Comments
 (0)