Storing Mappings in Solidity's Storage
Okay let’s first look at the code
contract Demo {
uint256 a = 0x1a01; // Slot 0
uint256 b = 0x2a01; // Slot 1
mapping(uint => uint) c; // Slot 2
uint256 d = 0x5a01; // Sot 3
constructor(){
c[10] = 0xfe3f;
c[100] =...
mansoor-eth.hashnode.dev2 min read