-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add note to pack arguments (#5304)
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#[oracle(packArguments)] | ||
fn pack_arguments_oracle<N>(_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<N>(args: [Field; N]) -> Field { | ||
pack_arguments_oracle(args) | ||
} |