Storing Static Type in Solidity's Storage
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 4 (slot 2)
uint256[2] d = [10,20] // line 5 slot(3 & 4)
function getSlotvalue(uint slot) public...
mansoor-eth.hashnode.dev1 min read