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:
parent
7ed0df4f05
commit
d24b5b76fd
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user