very wip working register

This commit is contained in:
Jonathan Rainville 2018-07-12 16:31:00 -04:00 committed by Pascal Precht
parent a4622c5ce4
commit c67a9ddf58
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

View File

@ -172,6 +172,7 @@ __embarkENS.setProvider = function (config) {
}) })
.catch(err => { .catch(err => {
if (err.message.indexOf('Provider not set or invalid') > -1) { if (err.message.indexOf('Provider not set or invalid') > -1) {
console.log('PROVIDER NOT SET');
console.warn(ERROR_MESSAGE); console.warn(ERROR_MESSAGE);
return; return;
} }
@ -190,6 +191,7 @@ __embarkENS.resolve = function (name, callback) {
} }
let node = namehash.hash(name); let node = namehash.hash(name);
console.log('NODE TO RESOLVE', node);
function cb(err, addr) { function cb(err, addr) {
if (err === NoDecodeAddrError) { if (err === NoDecodeAddrError) {