contract ExampleContract { mapping(uint256 => mapping(uint256 => uint256)) public nestedMap; function setNestedMap(uint256 key1, uint256 key2, uint256 finalValue) public { nestedMap[key1][key2] = finalValue; } function getNestedMap(uint256 key1, uint256 key2, uint256 finalValue) public { nestedMap[key1][key2] = finalValue; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter