Closed dsimog01 closed 1 year ago
ensureValidDnpName
was only checking if the string ends with "dappnode.eth". This is not enoughisEnsDomain
is used in directory.ts, but also by the function ensureValidDnpName
in file apmRepository.ts. The first check this function should perform is if the string passed corresponds to an ENS domain@pablomendezroyo I think that it is good to have exported isEnsDomain
function as it is used also in the dappmanager, and we could remove duplicate code from there and import it from the toolkit that is already a dependency for the dappmanager
Then it should be moved to types dependency and then use it here and in the dappmanager @dsimog01
You are implementing testing for a dependency. Move the tests to the types repo
Fixed @pablomendezroyo
ENS names validation moved to utils and tests added:
The previous functions were marking strings like
example*.dappnode.eth