diff --git a/lnt/server/ui/static/lnt_profile.js b/lnt/server/ui/static/lnt_profile.js --- a/lnt/server/ui/static/lnt_profile.js +++ b/lnt/server/ui/static/lnt_profile.js @@ -137,8 +137,10 @@ convertToAddress: function (addressString, addressCurrent) { // If the address starts with '#' it is a relative one // and should be processed differently - if (addressString.startsWith('#')) - return addressCurrent + parseInt(addressString.substring(1), 10); + if (addressString.startsWith('#')) { + var base = (addressString.startsWith('#0x') ? 16 : 10); + return addressCurrent + parseInt(addressString.substring(1), base); + } else return parseInt(addressString, 16); },