From fc40044e7b5cd90a49073c9600906b6b7bea73d0 Mon Sep 17 00:00:00 2001 From: benesjan Date: Mon, 9 Sep 2024 18:10:15 +0000 Subject: [PATCH] workaround --- .../contracts/token_blacklist_contract/src/main.nr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noir-projects/noir-contracts/contracts/token_blacklist_contract/src/main.nr b/noir-projects/noir-contracts/contracts/token_blacklist_contract/src/main.nr index c445e179405b..20a065fa84b1 100644 --- a/noir-projects/noir-contracts/contracts/token_blacklist_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/token_blacklist_contract/src/main.nr @@ -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}}; @@ -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)]