From 78a9b312515d4b0de9084847ec682d8c553a7dfa Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 21 Jun 2018 13:24:41 -0400 Subject: [PATCH] put contracts inside the contracts field --- lib/modules/ens/index.js | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index c6cd454b7..0845edb57 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -61,24 +61,32 @@ class ENS { self.embark.registerContractConfiguration({ "default": { "gas": "auto", - "ENSRegistry": { - "deploy": true, - "args": [] + "contracts": { + "ENSRegistry": { + "deploy": true, + "args": [] + } } }, "ropsten": { - "ENSRegistry": { - "address": "0x112234455c3a32fd11230c42e7bccd4a84e02010" + "contracts": { + "ENSRegistry": { + "address": "0x112234455c3a32fd11230c42e7bccd4a84e02010" + } } }, "rinkeby": { - "ENSRegistry": { - "address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A" + "contracts": { + "ENSRegistry": { + "address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A" + } } }, "livenet": { - "ENSRegistry": { - "address": "0x314159265dd8dbb310642f98f50c066173c1259b" + "contracts": { + "ENSRegistry": { + "address": "0x314159265dd8dbb310642f98f50c066173c1259b" + } } } }); @@ -92,10 +100,12 @@ class ENS { self.embark.registerContractConfiguration({ "default": { "gas": "auto", - "FIFSRegistrar": { - "deploy": true, - "args": ["$ENSRegistry", rootNode], - "onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"] + "contracts": { + "FIFSRegistrar": { + "deploy": true, + "args": ["$ENSRegistry", rootNode], + "onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"] + } } } });