Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 14, 2025
1 parent c026625 commit 0c13163
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions noir-projects/noir-contracts/contracts/token_contract/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ contract Token {
assert(nonce == 0, "invalid nonce");
}

storage.balances.at(from).sub(from, amount).emit(
encode_and_encrypt_note(&mut context, from, from),
);
storage.balances.at(from).sub(from, amount).emit(encode_and_encrypt_note(
&mut context,
from,
from,
));
Token::at(context.this_address())._increase_public_balance(to, amount).enqueue(&mut context);
}
// docs:end:transfer_to_public
Expand Down Expand Up @@ -390,9 +392,11 @@ contract Token {
} else {
assert(nonce == 0, "invalid nonce");
}
storage.balances.at(from).sub(from, amount).emit(
encode_and_encrypt_note(&mut context, from, from),
);
storage.balances.at(from).sub(from, amount).emit(encode_and_encrypt_note(
&mut context,
from,
from,
));
Token::at(context.this_address())._reduce_total_supply(amount).enqueue(&mut context);
}
// docs:end:burn_private
Expand Down

0 comments on commit 0c13163

Please sign in to comment.