contract ExampleContract { // returns false by default mapping(uint256 => bool) public mapToBool; // returns 0 by default mapping(uint256 => uint256) public mapToUint; // returns 0x0000000000000000000000000000000000000000 by default mapping(uint256 => address) public mapToAddress; }
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