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) {
|
module.exports.resolve = function (name, provider) {
|
||||||
const path = name.split('.')
|
const path = name.split('.')
|
||||||
const tld = path[path.length - 1]
|
const topLevelDomain = path[path.length - 1]
|
||||||
if (tld === 'eth' || tld === 'test') {
|
if (topLevelDomain === 'eth' || topLevelDomain === 'test') {
|
||||||
return ens(name, provider)
|
return ens(name, provider)
|
||||||
} else {
|
} else {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user