From 832de8638aa8eb111b9299e798f66aaf81eaf490 Mon Sep 17 00:00:00 2001 From: Maddiaa <47148561+Maddiaa0@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:47:30 +0000 Subject: [PATCH] chore: add note to pack arguments (#5304) --- noir-projects/aztec-nr/aztec/src/oracle/arguments.nr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/noir-projects/aztec-nr/aztec/src/oracle/arguments.nr b/noir-projects/aztec-nr/aztec/src/oracle/arguments.nr index f5bd2831291..f1de424f840 100644 --- a/noir-projects/aztec-nr/aztec/src/oracle/arguments.nr +++ b/noir-projects/aztec-nr/aztec/src/oracle/arguments.nr @@ -1,7 +1,11 @@ #[oracle(packArguments)] fn pack_arguments_oracle(_args: [Field; N]) -> Field {} -// TODO: explain what this does. +/// - Pack arguments will notify the simulator that these arguments will be used later at +/// some point in the call. +/// - When the external call is made later, the simulator will know what the values unpack to. +/// - This oracle will not be required in public vm functions, as the vm will keep track of arguments +/// itself. unconstrained pub fn pack_arguments(args: [Field; N]) -> Field { pack_arguments_oracle(args) }