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 6728c3c7dc
commit b9d0bb6a58

View File

@ -165,6 +165,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;