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; } }