Skip to content

Commit

Permalink
unrelated clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Dec 16, 2024
1 parent 57f2a45 commit 6949ccf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ contract AMM {

// We then complete the flow in public. Note that the type of operation and amounts will all be publicly known,
// but the identity of the caller is not revealed despite us being able to send tokens to them by completing the
// partial notees.
// partial notes.
AMM::at(context.this_address())
._add_liquidity(
config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ contract NFT {
// We prepare the private balance increase.
let hiding_point_slot = _prepare_private_balance_increase(to, &mut context, storage);

// At last we finalize the transfer. Usafe of the `unsafe` method here is safe because we set the `from`
// At last we finalize the transfer. Usage of the `unsafe` method here is safe because we set the `from`
// function argument to a message sender, guaranteeing that he can transfer only his own NFTs.
nft._finalize_transfer_to_private_unsafe(from, token_id, hiding_point_slot).enqueue(
&mut context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@ contract Token {
// docs:end:finalize_transfer_to_private

// docs:start:finalize_transfer_to_private_unsafe
/// This is a wrapper around `_finalize_transfer_to_private` placed here so that a call
/// to `_finalize_transfer_to_private` can be enqueued. Called unsafe as it does not check `from` (this has to be
/// done in the calling function).
#[public]
#[internal]
fn _finalize_transfer_to_private_unsafe(
Expand Down Expand Up @@ -541,7 +544,7 @@ contract Token {

// docs:start:mint_to_private
/// Mints token `amount` to a private balance of `to`. Message sender has to have minter permissions (checked
/// in the enqueud call).
/// in the enqueued call).
#[private]
fn mint_to_private(
from: AztecAddress, // sender of the tag: TODO(#9887): this is not great?
Expand Down

0 comments on commit 6949ccf

Please sign in to comment.