only enabble register in dev

This commit is contained in:
Jonathan Rainville 2018-07-25 16:27:30 -04:00 committed by Iuri Matias
parent 1f9bdd6900
commit 76eb365d37

View File

@ -164,6 +164,7 @@ __embarkENS.setProvider = function (config) {
EmbarkJS.onReady(() => {
self.registration = config.registration;
EmbarkJS.onReady(() => {
web3.eth.net.getId()
.then((id) => {
const registryAddress = self.registryAddresses[id] || config.registryAddress;