1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update variable name

This commit is contained in:
bitpshr 2018-07-16 09:05:08 -04:00
parent 7ed0df4f05
commit d24b5b76fd

View File

@ -60,8 +60,8 @@ function getRegistrar (type) {
module.exports.resolve = function (name, provider) {
const path = name.split('.')
const tld = path[path.length - 1]
if (tld === 'eth' || tld === 'test') {
const topLevelDomain = path[path.length - 1]
if (topLevelDomain === 'eth' || topLevelDomain === 'test') {
return ens(name, provider)
} else {
return new Promise((resolve, reject) => {