Skip to content

Commit

Permalink
Revert "resolve isENS without case sensitivity (#2545)" (#2566)
Browse files Browse the repository at this point in the history
This reverts commit 4b5d268.
  • Loading branch information
rickycodes authored Apr 22, 2021
1 parent 8ab2ed9 commit d252897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function importAccountFromPrivateKey(private_key) {
*/
export function isENS(name) {
const rec = name && name.split('.');
if (!rec || rec.length === 1 || !AppConstants.supportedTLDs.includes(rec[rec.length - 1].toLowerCase())) {
if (!rec || rec.length === 1 || !AppConstants.supportedTLDs.includes(rec[rec.length - 1])) {
return false;
}
return true;
Expand Down

0 comments on commit d252897

Please sign in to comment.