From 825c14aaac3478b1d609d660cd39cd9ec97438b5 Mon Sep 17 00:00:00 2001 From: OGPoyraz Date: Wed, 18 Dec 2024 15:12:28 +0100 Subject: [PATCH] Add comment --- ui/selectors/selectors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index 8d833721d55e..9ef74f1ab089 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -733,6 +733,7 @@ export function getAddressBook(state) { export function getEnsResolutionByAddress(state, address) { if (state.metamask.ensResolutionsByAddress[address]) { const ensResolution = state.metamask.ensResolutionsByAddress[address]; + // ensResolution is a punycode encoded string hence toUnicode is used to decode it from same package const normalizedEnsResolution = toUnicode(ensResolution); return normalizedEnsResolution; }