Fixed Provider.lookup to support any address format.

This commit is contained in:
Richard Moore 2017-10-17 16:07:32 -04:00
parent bbd3c94ec3
commit afb35ec307

@ -785,7 +785,9 @@ utils.defineProperty(Provider.prototype, 'resolveName', function(name) {
});
utils.defineProperty(Provider.prototype, 'lookupAddress', function(address) {
var name = utils.getAddress(address).substring(2) + '.addr.reverse'
address = utils.getAddress(address);
var name = address.substring(2) + '.addr.reverse'
var nodehash = utils.namehash(name);
var self = this;