Skip to content

ENSDomain โ€‹

Library ยท src/framework/utils/ens/ENSDomain.sol

Pure-string utilities for working with ENS domain names: namehash (EIP-137) and splitting at the first dot. Single source of truth used by the contract, deploy scripts and tests.

Errors โ€‹

InvalidDomain โ€‹

solidity
error InvalidDomain(string domain)

Thrown when domain is structurally malformed