Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -617,15 +617,7 @@ contract Token {

// 2. Deduct the max fee from user's balance. The difference between max fee and the actual tx fee will
// be refunded to the user in the `complete_refund(...)` function.
let change = subtract_balance(
&mut context,
storage,
user,
max_fee,
INITIAL_TRANSFER_CALL_MAX_NOTES,
);
// Emit the change note.
storage.balances.at(user).add(user, change).emit(encode_and_encrypt_note_unconstrained(
storage.balances.at(user).sub(user, max_fee).emit(encode_and_encrypt_note_unconstrained(
&mut context,
user,
user,
Expand Down