fix using only_owner

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

View File

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