Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 20, 2024
1 parent 8aaf8c1 commit b5b21dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ contract PendingNoteHashes {

assert(notes.len() == 0);

let header = context.get_header();
let owner_npk_m_hash = get_current_public_keys(&mut context, owner).npk_m.hash();

// Insert note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,6 @@ contract Token {
assert_current_call_valid_authwit(&mut context, user);

// 2. Get all the relevant keys
let header = context.get_header();

let fee_payer_npk_m_hash = get_current_public_keys(&mut context, fee_payer).npk_m.hash();
let user_keys = get_current_public_keys(&mut context, user);
let user_npk_m_hash = user_keys.npk_m.hash();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ impl<T> BalancesMap<T, &mut PrivateContext> {
if addend == U128::from_integer(0) {
OuterNoteEmission::new(Option::none())
} else {
let context = self.map.context;

// We fetch the nullifier public key hash from the registry / from our PXE
let mut addend_note = T::new(addend, owner_npk_m.hash());

Expand Down

0 comments on commit b5b21dd

Please sign in to comment.