Skip to content

Commit

Permalink
placeholder in blank contract
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 31, 2023
1 parent 08b2a27 commit 42d249c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions yarn-project/boxes/blank/src/contracts/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ contract Blank {

[pub_key.x, pub_key.y]
}

// A function which needs to be implemented by every contract working with storage. Replace it's content with your
// own logic once you start working with private storage.
// TODO: Remove this placeholder once https://github.com/AztecProtocol/aztec-packages/issues/2918 is implemented.
unconstrained fn compute_note_hash_and_nullifier(contract_address: Field, nonce: Field, storage_slot: Field, preimage: [Field; 0]) -> [Field; 4] {
[0, 0, 0, 0]
}
}

0 comments on commit 42d249c

Please sign in to comment.