diff --git a/yarn-project/simulator/src/public/public_execution_context.ts b/yarn-project/simulator/src/public/public_execution_context.ts index b681df3f95a..20e41a12db6 100644 --- a/yarn-project/simulator/src/public/public_execution_context.ts +++ b/yarn-project/simulator/src/public/public_execution_context.ts @@ -1,8 +1,4 @@ -import { - type NullifierMembershipWitness, - UnencryptedFunctionL2Logs, - type UnencryptedL2Log, -} from '@aztec/circuit-types'; +import { UnencryptedFunctionL2Logs, type UnencryptedL2Log } from '@aztec/circuit-types'; import { CallContext, FunctionData, @@ -259,16 +255,6 @@ export class PublicExecutionContext extends TypedOracle { return childExecutionResult.returnValues; } - public async getNullifierMembershipWitness( - blockNumber: number, - nullifier: Fr, - ): Promise { - if (!this.header.globalVariables.blockNumber.equals(new Fr(blockNumber))) { - throw new Error(`Public execution oracle can only access nullifier membership witnesses for the current block`); - } - return await this.commitmentsDb.getNullifierMembershipWitnessAtLatestBlock(nullifier); - } - public async checkNullifierExists(nullifier: Fr): Promise { const witness = await this.commitmentsDb.getNullifierMembershipWitnessAtLatestBlock(nullifier); return !!witness;