Skip to content

Commit

Permalink
workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 9, 2024
1 parent 334d6ab commit fc40044
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract TokenBlacklist {
use dep::aztec::{
hash::compute_secret_hash,
prelude::{AztecAddress, FunctionSelector, Map, NoteGetterOptions, PrivateSet, PublicMutable, SharedMutable},
encrypted_logs::encrypted_note_emission::encode_and_encrypt_note
encrypted_logs::encrypted_note_emission::{encode_and_encrypt_note, encode_and_encrypt_note_unconstrained}
};

use dep::authwit::{auth::{assert_current_call_valid_authwit, assert_current_call_valid_authwit_public}};
Expand Down Expand Up @@ -214,8 +214,8 @@ contract TokenBlacklist {
}

let amount = U128::from_integer(amount);
storage.balances.sub(from, amount).emit(encode_and_encrypt_note(&mut context, from, from));
storage.balances.add(to, amount).emit(encode_and_encrypt_note(&mut context, from, to));
storage.balances.sub(from, amount).emit(encode_and_encrypt_note_unconstrained(&mut context, from, from));
storage.balances.add(to, amount).emit(encode_and_encrypt_note_unconstrained(&mut context, from, to));
}

#[aztec(private)]
Expand Down

0 comments on commit fc40044

Please sign in to comment.