Skip to content

Commit

Permalink
Merge pull request #48 from radixnameservice/develop
Browse files Browse the repository at this point in the history
feat: add address check to authenticity
  • Loading branch information
jameswylie authored Mar 19, 2024
2 parents c3a3c76 + 93d805a commit a81de34
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,11 @@ export default class RnsSDK {
};
}

for (let i = 0; i < domainInterests.length; i++) {

const interestDomain = domainInterests[i];

if (interestDomain.name === domain) {
return {
isAuthentic: true
};
}

}
const isAuthentic = domainInterests.find((interestDomain) => interestDomain.name === domain)?.address === accountAddress;

return {
isAuthentic: false
};
isAuthentic
}

}

Expand Down

0 comments on commit a81de34

Please sign in to comment.