From b83e9ac8092541e162e06ec463f794e284d40306 Mon Sep 17 00:00:00 2001 From: Yi Sun Date: Sat, 11 Jan 2025 01:15:45 -0500 Subject: [PATCH] fix: cache address --- extensions/native/compiler/src/ir/poseidon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/native/compiler/src/ir/poseidon.rs b/extensions/native/compiler/src/ir/poseidon.rs index b4bd1e6bb9..358982251b 100644 --- a/extensions/native/compiler/src/ir/poseidon.rs +++ b/extensions/native/compiler/src/ir/poseidon.rs @@ -130,7 +130,7 @@ impl Builder { builder.set(&state, i, C::F::ZERO); }); - let address = state.ptr().address; + let address = self.eval(state.ptr().address); let start: Var<_> = self.eval(address); let end: Var<_> = self.eval(address + C::N::from_canonical_usize(HASH_RATE)); self.iter(array).for_each(|subarray, builder| {