Articles in this series
Let’s first have a look at the Code contract Demo{ uint256 a 1234 // slot 0 uint8 b = 0x12; // slot 1 uint8[6] c = [1,2,3,4,5,6]; // line...
When Storing Dynamic type data , We don’t explicitly store the data in the next immediate slot, instead we only store the address of the slot where...
Let’s look at the architecture of the Memory in EVM. Scratch Space : Ephemeral space to write values ( used for instance by the sha3 opcode) Free...
Alright Let’s Continue from where we left , Previous One : Demystifying Memory in EVM (Part I) Memory Initialization When a contract is executed , the...
Introduction Yul is an intermediate language that can be used with Solidity or as a standalone language . It is particularly useful for writing...
Reading a Slot in Yul Lets start with a Coding Example contract offsetAndShifting{ uint128 public a = 22; uint96 public b =15; uint16...