Mansoor Buttmansoor-eth.hashnode.devยทNov 18, 2024Storage in Structs (Solidity)Lets first look at the code contract A { struct SomeStruct{ uint256 val1; uint16 val2; bool val3; } uint256 a = 3; // slot 0 uint256 b = 0x555 // slot 1 SomeStruct structVar = SomeStruct(0x2345,5,true) // Line 10 function getSlotVal(u...SolidityAdd a thoughtful commentNo comments yetBe the first to start the conversation.