only enabble register in dev

This commit is contained in:
Jonathan Rainville 2018-07-25 16:27:30 -04:00 committed by Pascal Precht
parent e95efbfc54
commit d5b224eee7
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 2 deletions

View File

@ -152,9 +152,8 @@ __embarkENS.setProvider = function (config) {
const ERROR_MESSAGE = 'ENS is not available in this chain'; const ERROR_MESSAGE = 'ENS is not available in this chain';
self.registration = config.registration; self.registration = config.registration;
self.env = config.env; self.env = config.env;
EmbarkJS.onReady(() => {
self.registration = config.registration;
EmbarkJS.onReady(() => {
web3.eth.net.getId() web3.eth.net.getId()
.then((id) => { .then((id) => {
const registryAddress = self.registryAddresses[id] || config.registryAddress; const registryAddress = self.registryAddresses[id] || config.registryAddress;