From debea964490d8413f33d52bc7d2f969283c57ca1 Mon Sep 17 00:00:00 2001 From: Filip Bielejec Date: Tue, 16 Jan 2024 20:22:40 +0100 Subject: [PATCH] fixtypo (#928) --- syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md b/syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md index 60da8327b..ee203c83e 100644 --- a/syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md +++ b/syllabus/4-Smart_Contracts/6-Wasm_ink!_slides.md @@ -818,12 +818,12 @@ Notes:
-| 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 structure, only order matters |