Skip to content

Commit

Permalink
fixtypo (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbielejec authored Jan 16, 2024
1 parent ad9db48 commit debea96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,12 +818,12 @@ Notes:

<div style="font-size: 0.72em;">

| Type | Decoding | Encoding example | Remark |
| ------------ | ------------------------------------- | ---------------------------- | ------------------------------------------------------------------------------ |
| Boolean | true | 0x0 | encoded using least significant bit of a single byte |
| | false | 0x1 | |
| Type | Decoding | Encoding example | Remark |
|--------------|---------------------------------------|------------------------------|--------------------------------------------------------------------------------|
| Boolean | false | 0x0 | encoded using least significant bit of a single byte |
| | true | 0x1 | |
| Unsigned int | 42 | 0x2a00 | |
| Enum | enum IntOrBool { Int(u8), Bool(bool)} | 0x002a or 0x0101 | first byte encodes the variant index, remaining bytes encode the data |
| Enum | enum IntOrBool { Int(u8), Bool(bool)} | 0x002a or 0x0101 | first byte encodes the variant index, remaining bytes encode the data |
| Tuple | (3, false) | 0x0c00 | concatenation of each encoded value |
| Vector | [4, 8, 15, 16, 23, 42] | 0x18040008000f00100017002a00 | encoding of the vector length followed by conatenation of each item's encoding |
| Struct | {x:30u64, y:true} | [0x1e,0x0,0x0,0x0,0x1] | names are ignored, Vec<u8> structure, only order matters |
Expand Down

0 comments on commit debea96

Please sign in to comment.