-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Databus panic for fns with empty params (#8847)
Fixes databus panicking when a fn has parameters that translate to zero witnesses. Doing this in the aztec-packages repo because @LeilaWang needs it for a WIP branch
- Loading branch information
1 parent
b8d255b
commit 3846536
Showing
4 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 6 additions & 0 deletions
6
noir/noir-repo/test_programs/execution_success/databus_in_fn_with_empty_arr/Nargo.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[package] | ||
name = "databus_in_fn_with_empty_arr" | ||
type = "bin" | ||
authors = [""] | ||
|
||
[dependencies] |
3 changes: 3 additions & 0 deletions
3
noir/noir-repo/test_programs/execution_success/databus_in_fn_with_empty_arr/Prover.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_empty = [] | ||
value_1 = "1" | ||
value_2 = "2" |
3 changes: 3 additions & 0 deletions
3
noir/noir-repo/test_programs/execution_success/databus_in_fn_with_empty_arr/src/main.nr
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main(_empty: [u32; 0], value_1: u32, value_2: call_data(0) u32) { | ||
assert_eq(value_1 + 1, value_2); | ||
} |