diff --git a/yarn-project/aztec-nr/aztec/src/oracle/get_sibling_path.nr b/yarn-project/aztec-nr/aztec/src/oracle/get_sibling_path.nr index 3233b23ef09d..4eb79a5442f2 100644 --- a/yarn-project/aztec-nr/aztec/src/oracle/get_sibling_path.nr +++ b/yarn-project/aztec-nr/aztec/src/oracle/get_sibling_path.nr @@ -1,7 +1,7 @@ use crate::constants_gen::NOTE_HASH_TREE_HEIGHT; use crate::utils::arr_copy_slice; -#[oracle(geSiblingPath)] +#[oracle(getSiblingPath)] fn get_sibling_path_oracle(_block_number: Field, _tree_id: Field, _index: Field) -> [Field; N] {} unconstrained pub fn get_sibling_path(block_number: Field, tree_id: Field, index: Field) -> [Field; N] { diff --git a/yarn-project/end-to-end/src/e2e_inclusion_proofs_contract.test.ts b/yarn-project/end-to-end/src/e2e_inclusion_proofs_contract.test.ts index fc79ff6ab656..95e88e9f9145 100644 --- a/yarn-project/end-to-end/src/e2e_inclusion_proofs_contract.test.ts +++ b/yarn-project/end-to-end/src/e2e_inclusion_proofs_contract.test.ts @@ -58,4 +58,9 @@ describe('e2e_inclusion_proofs_contract', () => { await contract.methods.proveNullifierNonInclusion(accounts[0].address, blockNumber).send().wait(); } }); + + it('proves an existence of a public value in private context', async () => { + const blockNumber = await pxe.getBlockNumber(); + await contract.methods.provePublicValueInclusion(accounts[0].address, blockNumber).send().wait(); + }); }); diff --git a/yarn-project/noir-contracts/src/contracts/inclusion_proofs_contract/src/main.nr b/yarn-project/noir-contracts/src/contracts/inclusion_proofs_contract/src/main.nr index fe824c4a3c44..a41aeebba0e1 100644 --- a/yarn-project/noir-contracts/src/contracts/inclusion_proofs_contract/src/main.nr +++ b/yarn-project/noir-contracts/src/contracts/inclusion_proofs_contract/src/main.nr @@ -74,7 +74,7 @@ contract InclusionProofs { #[aztec(private)] fn constructor(public_value: Field) { - let selector = compute_selector("_initialize((Field))"); + let selector = compute_selector("_initialize(Field)"); context.call_public_function(context.this_address(), selector, [public_value]); }