From adb97859ec3ecb3c260c5e500633665052a3e973 Mon Sep 17 00:00:00 2001 From: Mohammed Alobaidi <37510951+moAlobaidi@users.noreply.github.com> Date: Mon, 26 Jun 2023 16:23:50 -0700 Subject: [PATCH] correct supported types table to support any type (#225) * correct supported types table to support any type * Update documentation/aleo/04_opcodes.md Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> * Update documentation/aleo/04_opcodes.md Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> --------- Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com> Co-authored-by: Collin Chin <16715212+collinc97@users.noreply.github.com> --- documentation/aleo/04_opcodes.md | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/documentation/aleo/04_opcodes.md b/documentation/aleo/04_opcodes.md index 4382a89149..7b17a8a12c 100644 --- a/documentation/aleo/04_opcodes.md +++ b/documentation/aleo/04_opcodes.md @@ -1330,27 +1330,16 @@ The `rand.chacha` opcode is used to generate random values within the `finalize` rand.chacha into r0 as field; rand.chacha r0 into r1 as field; rand.chacha r0 r1 into r2 as field; +rand.chacha 1u8 2i16 into r27 as u32; ``` -#### Supported Types +#### Supported Types -| First | Second | Destination | -|-----------|-----------|-------------| -| Address | Address | Address | -| Boolean | Boolean | Boolean | -| Field | Field | Field | -| Group | Group | Group | -| I8 | I8 | I8 | -| I16 | I16 | I16 | -| I32 | I32 | I32 | -| I64 | I64 | I64 | -| I128 | I128 | I128 | -| U8 | U8 | U8 | -| U16 | U16 | U16 | -| U32 | U32 | U32 | -| U64 | U64 | U64 | -| U128 | U128 | U128 | -| Scalar | Scalar | Scalar | +Single can be any of the following types `Address`, `Boolean`, `Field`, `Group`, `I8`, `I16`, `I32`, `I64`, `I128`, `U8`, `U16`, `U32`, `U64`, `U128`, or `Scalar`. Composite data types such as structs and mappings are not allowed. + +| First | Second | Destination | +|-------------|-------------|-------------| +| `Single` | `Single` | `Single` | ***