put contracts inside the contracts field

This commit is contained in:
Iuri Matias 2018-06-21 13:24:41 -04:00
parent 056b5a0ab9
commit 78a9b31251
1 changed files with 23 additions and 13 deletions

View File

@ -61,24 +61,32 @@ class ENS {
self.embark.registerContractConfiguration({ self.embark.registerContractConfiguration({
"default": { "default": {
"gas": "auto", "gas": "auto",
"ENSRegistry": { "contracts": {
"deploy": true, "ENSRegistry": {
"args": [] "deploy": true,
"args": []
}
} }
}, },
"ropsten": { "ropsten": {
"ENSRegistry": { "contracts": {
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010" "ENSRegistry": {
"address": "0x112234455c3a32fd11230c42e7bccd4a84e02010"
}
} }
}, },
"rinkeby": { "rinkeby": {
"ENSRegistry": { "contracts": {
"address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A" "ENSRegistry": {
"address": "0xe7410170f87102DF0055eB195163A03B7F2Bff4A"
}
} }
}, },
"livenet": { "livenet": {
"ENSRegistry": { "contracts": {
"address": "0x314159265dd8dbb310642f98f50c066173c1259b" "ENSRegistry": {
"address": "0x314159265dd8dbb310642f98f50c066173c1259b"
}
} }
} }
}); });
@ -92,10 +100,12 @@ class ENS {
self.embark.registerContractConfiguration({ self.embark.registerContractConfiguration({
"default": { "default": {
"gas": "auto", "gas": "auto",
"FIFSRegistrar": { "contracts": {
"deploy": true, "FIFSRegistrar": {
"args": ["$ENSRegistry", rootNode], "deploy": true,
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"] "args": ["$ENSRegistry", rootNode],
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"]
}
} }
} }
}); });