Skip to content

Commit

Permalink
[DT-902] chore: added Ens.dns() todo
Browse files Browse the repository at this point in the history
  • Loading branch information
DChan0319 committed Sep 28, 2023
1 parent 6c4c53a commit 6a258b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
Provider,
TokenUriMetadata,
BlockchainType,
DnsRecordType,
DnsRecord,
} from './types/publicTypes';
import {EthereumNetworksInverted, isNullAddress} from './utils';
import FetchProvider from './FetchProvider';
Expand Down Expand Up @@ -179,6 +181,13 @@ export default class Ens extends NamingService {
});
}

// TODO: Need to understand how ENS supports DNS @see https://docs.ens.domains/contract-api-reference/dns-registrar#retrieving-the-dns-text-record
async dns(domain: string, types: DnsRecordType[]): Promise<DnsRecord[]> {
throw new ResolutionError(ResolutionErrorCode.UnsupportedMethod, {
methodName: 'dns',
});
}

async reverse(
address: string,
currencyTicker: string,
Expand Down

0 comments on commit 6a258b0

Please sign in to comment.