diff --git a/yarn-project/noir-compiler/src/__snapshots__/index.test.ts.snap b/yarn-project/noir-compiler/src/__snapshots__/index.test.ts.snap index a94c69debbb..b1c493ce78f 100644 --- a/yarn-project/noir-compiler/src/__snapshots__/index.test.ts.snap +++ b/yarn-project/noir-compiler/src/__snapshots__/index.test.ts.snap @@ -84,7 +84,7 @@ exports[`noir-compiler using noir wasm generates noir external interface 1`] = ` "/* Autogenerated file, do not edit! */ use dep::std; -use dep::aztec::context::Context; +use dep::aztec::context::PrivateContext; use dep::aztec::constants_gen::RETURN_VALUES_LENGTH; @@ -101,7 +101,7 @@ impl TestContractContractInterface { fn openFunction( self, - context: &mut Context + context: &mut PrivateContext ) { let mut serialised_args = [0; 0]; diff --git a/yarn-project/noir-contracts/src/contracts/pending_commitments_contract/src/main.nr b/yarn-project/noir-contracts/src/contracts/pending_commitments_contract/src/main.nr index 42b761b6384..3adaa0ff3a1 100644 --- a/yarn-project/noir-contracts/src/contracts/pending_commitments_contract/src/main.nr +++ b/yarn-project/noir-contracts/src/contracts/pending_commitments_contract/src/main.nr @@ -127,8 +127,7 @@ contract PendingCommitments { amount: Field, owner: Field, ) -> distinct pub abi::PrivateCircuitPublicInputs { - let storage = Storage::init(); - let mut context = Context::new(inputs, abi::hash_args([amount, owner])); + let mut context = PrivateContext::new(inputs, abi::hash_args([amount, owner])); context.finish() }