From 2ba0d626192aba33eefffa34bf5919a6c8bccb39 Mon Sep 17 00:00:00 2001 From: Song Xuyang Date: Wed, 20 Sep 2023 18:35:19 +0800 Subject: [PATCH] fix get_is_input_note_flag bug --- taiga_halo2/src/circuit/gadgets/target_note_variable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga_halo2/src/circuit/gadgets/target_note_variable.rs b/taiga_halo2/src/circuit/gadgets/target_note_variable.rs index 2eaaaf89..0453fae1 100644 --- a/taiga_halo2/src/circuit/gadgets/target_note_variable.rs +++ b/taiga_halo2/src/circuit/gadgets/target_note_variable.rs @@ -315,7 +315,7 @@ impl GetIsInputNoteFlagConfig { let is_input_note_flag = owned_note_pub_id .value() .zip(input_note_nfs[0].value()) - .zip(input_note_nfs[0].value()) + .zip(input_note_nfs[1].value()) .map( |((&owned_note_pub_id, &input_note_nf_1), &input_note_nf_2)| { if owned_note_pub_id == input_note_nf_1 || owned_note_pub_id == input_note_nf_2