Skip to content

Commit

Permalink
fix(master): remove secret_hash ref (#2617)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rahul-kothari authored Oct 2, 2023
1 parent 78bd1a3 commit 1073bcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1073bcd

Please sign in to comment.