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 4f1043910d
commit 972ebe07cd
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 0 deletions

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;