Learning Dark Arts of Yul Part II
Reading a Slot in Yul
Lets start with a Coding Example
contract offsetAndShifting{
uint128 public a = 22;
uint96 public b =15;
uint16 public c = 8;
uint8 public d = 1;
function readValueBySlot(uint256 slot) external view return(b...
mansoor-eth.hashnode.dev2 min read