From e6cff357a2c5caca03be9ea64b55cf262b017f5c Mon Sep 17 00:00:00 2001 From: Gregorio Juliana Date: Thu, 23 May 2024 10:05:42 +0200 Subject: [PATCH] feat: batch simulate (#6599) Closes: https://github.com/AztecProtocol/aztec-packages/issues/6549 Also removes `FunctionData` from `TxExecutionRequest` and a bunch of other places, in favor of just the `FunctionSelector`(which is actually what's needed). This was missed from #3417 and was driving me crazy when trying to add a few more things to `FunctionCall`. It had also leaked somehow into the AVM enqueued calls. --- aztec/src/oracle/enqueue_public_function_call.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec/src/oracle/enqueue_public_function_call.nr b/aztec/src/oracle/enqueue_public_function_call.nr index 03ec1ebd..34491d8d 100644 --- a/aztec/src/oracle/enqueue_public_function_call.nr +++ b/aztec/src/oracle/enqueue_public_function_call.nr @@ -80,7 +80,7 @@ pub fn parse_public_call_stack_item_from_oracle(fields: [Field; ENQUEUE_PUBLIC_F // there is no more data in fields because there is only ENQUEUE_PUBLIC_FUNCTION_CALL_RETURN_SIZE fields! let item = PublicCallStackItem { contract_address: AztecAddress::from_field(reader.read()), - function_data: reader.read_struct(FunctionData::deserialize), + function_data: FunctionData { selector: FunctionSelector::from_field(reader.read()), is_private: false }, public_inputs: PublicCircuitPublicInputs { call_context: reader.read_struct(CallContext::deserialize), args_hash: reader.read(),