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 2b72072aa97d..c4c39d2a96aa 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,5 +1,5 @@ use dep::protocol_types::{ - hash::{pedersen_hash, poseidon2_hash}, header::Header, address::AztecAddress, + hash::{poseidon2_hash_with_separator}, header::Header, address::AztecAddress, traits::{FromField, ToField} }; @@ -71,15 +71,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) } // It may seem odd that we take a header and address instead of reading from e.g. a PrivateContext, but this lets us