Skip to content

Commit

Permalink
correct supported types table to support any type (#225)
Browse files Browse the repository at this point in the history
* correct supported types table to support any type

* Update documentation/aleo/04_opcodes.md

Signed-off-by: Collin Chin <[email protected]>

* Update documentation/aleo/04_opcodes.md

Signed-off-by: Collin Chin <[email protected]>

---------

Signed-off-by: Collin Chin <[email protected]>
Co-authored-by: Collin Chin <[email protected]>
  • Loading branch information
moAlobaidi and collinc97 committed Jun 26, 2023
1 parent 6b0619b commit adb9785
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions documentation/aleo/04_opcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

***

Expand Down

0 comments on commit adb9785

Please sign in to comment.