From fb39f34b9132f8e53d7ec40e5b018edb33ef5ce1 Mon Sep 17 00:00:00 2001 From: John Guibas Date: Tue, 19 Sep 2023 12:15:13 -0700 Subject: [PATCH] fix: generators not run bug in beacon apis (#183) --- plonky2x/src/frontend/hash/sha/sha256.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plonky2x/src/frontend/hash/sha/sha256.rs b/plonky2x/src/frontend/hash/sha/sha256.rs index a066ce62b..d131c9521 100644 --- a/plonky2x/src/frontend/hash/sha/sha256.rs +++ b/plonky2x/src/frontend/hash/sha/sha256.rs @@ -293,7 +293,7 @@ impl, const D: usize> Plonky2xCircuitBuilder { .chunks(8) .map(|chunk| ByteVariable(array![i => BoolVariable::from(chunk[i].target); 8])) .collect::>(); - let mut hash_bytes_array = [ByteVariable::init(self); 32]; + let mut hash_bytes_array = [ByteVariable::init_unsafe(self); 32]; hash_bytes_array.copy_from_slice(&hash_bytes_vec); Bytes32Variable(BytesVariable(hash_bytes_array)) }