From 8bcefe8be5a10e2fdb660f65ec3407b06bbba7ba Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Mon, 2 Oct 2023 13:38:23 +0100 Subject: [PATCH] fix(master): remove secret_hash ref (#2617) A recent commit to master included another reference to `compute_secret_hash` which I had moved in my PR but rebase didn't catch it in time. --- .../noir-contracts/src/contracts/token_contract/src/main.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn-project/noir-contracts/src/contracts/token_contract/src/main.nr b/yarn-project/noir-contracts/src/contracts/token_contract/src/main.nr index 32d3293e60cb..a100c701794b 100644 --- a/yarn-project/noir-contracts/src/contracts/token_contract/src/main.nr +++ b/yarn-project/noir-contracts/src/contracts/token_contract/src/main.nr @@ -22,7 +22,7 @@ contract Token { utils as note_utils, }, context::{PrivateContext, PublicContext, Context}, - hash::{compute_message_hash}, + hash::{compute_message_hash, compute_secret_hash}, state_vars::{map::Map, public_state::PublicState, set::Set}, types::type_serialization::{ field_serialization::{FieldSerializationMethods, FIELD_SERIALIZED_LEN}, @@ -274,7 +274,7 @@ contract Token { secret: Field, ) -> Field { let pending_shields = storage.pending_shields; - let secret_hash = TransparentNote::compute_secret_hash(secret); + let secret_hash = compute_secret_hash(secret); let options = NoteGetterOptions::new().select(0, amount).select(1, secret_hash).set_limit(1); let notes = pending_shields.get_notes(options); let note = notes[0].unwrap_unchecked();