Storage 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...
mansoor-eth.hashnode.dev1 min read