Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Aug 22, 2024
1 parent 9f5f84c commit b05684d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions noir-projects/noir-contracts/contracts/nft_contract/src/main.nr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Minimal NFT implementation with `AuthWit` support that allows minting and burning in public-only and transfers
// in both public and private.
// Minimal NFT implementation with `AuthWit` support that allows minting in public-only and transfers in both public
// and private.
contract NFT {
#[aztec(event)]
struct Transfer {
Expand Down Expand Up @@ -147,7 +147,7 @@ contract NFT {

// Burns public NFT
#[aztec(public)]
fn burn_public(from: AztecAddress, amount: Field, nonce: Field) {
fn burn(from: AztecAddress, amount: Field, nonce: Field) {
// docs:start:assert_current_call_valid_authwit_public
if (!from.eq(context.msg_sender())) {
assert_current_call_valid_authwit_public(&mut context, from);
Expand All @@ -157,12 +157,6 @@ contract NFT {
...
}

// Burns private NFT (enqueues a public function which udpates nft_exists map)
#[aztec(private)]
fn burn(from: AztecAddress, amount: Field, nonce: Field) {
...
}

#[aztec(private)]
fn redeem_shield(to: AztecAddress, amount: Field, secret: Field) {
...
Expand Down

0 comments on commit b05684d

Please sign in to comment.