diff --git a/src/resolver.ts b/src/resolver.ts index 7d3cae0..a67347d 100644 --- a/src/resolver.ts +++ b/src/resolver.ts @@ -93,10 +93,12 @@ export default class Eth extends AbstractResolverModule { return resolverError(e); } - records.push({ - type: DNS_RECORD_TYPE.CONTENT, - value: `${content.protocolType}://${content.decoded}` as string, - }); + if (content) { + records.push({ + type: DNS_RECORD_TYPE.CONTENT, + value: `${content.protocolType}://${content.decoded}` as string, + }); + } } if ([DNS_RECORD_TYPE.CUSTOM].includes(options.type)) {