Skip to content

Commit

Permalink
[DT-902] refactor: added ens.getAddress()
Browse files Browse the repository at this point in the history
  • Loading branch information
DChan0319 committed Sep 6, 2023
1 parent 54f0cec commit 7df48c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Ens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,13 @@ export default class Ens extends NamingService {
network: string,
token: string,
): Promise<string> {
// TODO: getAddress;
return '';
let fetchedAddress = '';
const address = await this.addr(domain, token);
if (address) {
fetchedAddress = address;
}

return fetchedAddress;
}

/**
Expand Down

0 comments on commit 7df48c0

Please sign in to comment.