From 5a8b3ff561f7249cd9bf521f1be4983654a11d91 Mon Sep 17 00:00:00 2001 From: Minh Date: Fri, 23 Apr 2021 02:22:38 +1000 Subject: [PATCH] resolve isENS without case sensitivity (#2545) Co-authored-by: ricky --- app/util/address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/util/address.js b/app/util/address.js index 842a597adbd..ae4e5d2e9cb 100644 --- a/app/util/address.js +++ b/app/util/address.js @@ -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])) { + if (!rec || rec.length === 1 || !AppConstants.supportedTLDs.includes(rec[rec.length - 1].toLowerCase())) { return false; } return true;