From 1f597f36f8765e012ad9bf02e9b405349aa8eb69 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Mon, 2 Oct 2023 12:19:38 +0000 Subject: [PATCH] remove secret_hash ref --- .../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 32d3293e60c..a100c701794 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();