fix indentations for linting purposes

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-05-23 11:46:02 -05:00
parent 73720b6978
commit 8748084a6b
2 changed files with 58 additions and 57 deletions

View File

@ -1,5 +1,5 @@
const namehash = require('eth-ens-namehash');
const Web3 = require('web3');
/*global web3*/
let __embarkENS = {};
@ -248,8 +248,8 @@ var registryAddresses = {
// Ropsten
"3": "0x112234455c3a32fd11230c42e7bccd4a84e02010",
// Rinkeby
"4": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A",
}
"4": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A"
};
__embarkENS.setProvider = function (options) {
const self = this;
@ -269,8 +269,8 @@ __embarkENS.setProvider = function (options) {
}
// todo: deploy at this point
return undefined;
})
}
});
};
__embarkENS.resolve = function(name) {
const self = this;
@ -284,4 +284,4 @@ __embarkENS.resolve = function(name) {
}).then((addr) => {
return addr
}).catch(err => err);
}
};

View File

@ -41,7 +41,8 @@ class ENS {
addSetProvider() {
let config = JSON.stringify({
web3: this.nameConfig.web3,
server: this.storageConfig.host,
port: this.storageConfig.port
});
let code = "\nEmbarkJS.Names.setProvider('ens'," + config + ");";