/* * @dev - Get ip of domain * @param domain * @param topLevel */ function getIP( bytes memory domain, bytes12 topLevel ) public view returns (bytes15) { // calculate the hash of the domain bytes32 domainHash = getDomainHash(domain, topLevel); // return the ip property of the domain from storage return domainNames[domainHash].ip; }