diff --git a/noir-projects/aztec-nr/aztec/src/state_vars/shared_mutable/shared_mutable.nr b/noir-projects/aztec-nr/aztec/src/state_vars/shared_mutable/shared_mutable.nr index 2b6f380e961..31171f75b1c 100644 --- a/noir-projects/aztec-nr/aztec/src/state_vars/shared_mutable/shared_mutable.nr +++ b/noir-projects/aztec-nr/aztec/src/state_vars/shared_mutable/shared_mutable.nr @@ -1,4 +1,7 @@ -use dep::protocol_types::{hash::{pedersen_hash, poseidon2_hash}, address::AztecAddress, traits::{FromField, ToField}}; +use dep::protocol_types::{ + hash::{poseidon2_hash, poseidon2_hash_with_separator}, address::AztecAddress, + traits::{FromField, ToField} +}; use crate::context::{PrivateContext, PublicContext, UnconstrainedContext}; use crate::state_vars::{ @@ -66,15 +69,15 @@ impl SharedMutable Field { - pedersen_hash([self.storage_slot], VALUE_CHANGE_SEPARATOR) + poseidon2_hash_with_separator([self.storage_slot], VALUE_CHANGE_SEPARATOR) } fn get_delay_change_storage_slot(self) -> Field { - pedersen_hash([self.storage_slot], DELAY_CHANGE_SEPARATOR) + poseidon2_hash_with_separator([self.storage_slot], DELAY_CHANGE_SEPARATOR) } fn get_hash_storage_slot(self) -> Field { - pedersen_hash([self.storage_slot], HASH_SEPARATOR) + poseidon2_hash_with_separator([self.storage_slot], HASH_SEPARATOR) } }