Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Dec 11, 2024
1 parent e83b1c9 commit 8ae4dfe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ contract TokenBlacklist {
assert(notes.len() == 1, "note not popped");

// Add the token note to user's balances set
storage.balances.add(to, U128::from_integer(amount)).emit(
encode_and_encrypt_note(&mut context, to, context.msg_sender()),
);
storage.balances.add(to, U128::from_integer(amount)).emit(encode_and_encrypt_note(
&mut context,
to,
context.msg_sender(),
));
}

#[private]
Expand All @@ -206,9 +208,11 @@ contract TokenBlacklist {
assert(nonce == 0, "invalid nonce");
}

storage.balances.sub(from, U128::from_integer(amount)).emit(
encode_and_encrypt_note(&mut context, from, from),
);
storage.balances.sub(from, U128::from_integer(amount)).emit(encode_and_encrypt_note(
&mut context,
from,
from,
));

TokenBlacklist::at(context.this_address())._increase_public_balance(to, amount).enqueue(
&mut context,
Expand Down Expand Up @@ -253,9 +257,11 @@ contract TokenBlacklist {
assert(nonce == 0, "invalid nonce");
}

storage.balances.sub(from, U128::from_integer(amount)).emit(
encode_and_encrypt_note(&mut context, from, from),
);
storage.balances.sub(from, U128::from_integer(amount)).emit(encode_and_encrypt_note(
&mut context,
from,
from,
));

TokenBlacklist::at(context.this_address())._reduce_total_supply(amount).enqueue(&mut context);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,7 @@ contract Token {
));
// docs:end:encrypted
// docs:end:increase_private_balance
storage.balances.at(to).add(to, amount).emit(encode_and_encrypt_note(
&mut context,
to,
from,
));
storage.balances.at(to).add(to, amount).emit(encode_and_encrypt_note(&mut context, to, from));
}
// docs:end:transfer_in_private

Expand Down

0 comments on commit 8ae4dfe

Please sign in to comment.