From 706996f2943a4f5e44cbf913bbeae264dc5512f6 Mon Sep 17 00:00:00 2001 From: elenadimitrova Date: Fri, 6 Jul 2018 15:03:03 +0300 Subject: [PATCH] Changes following Alex's review --- contracts/Colony.sol | 1 + test/meta-colony.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/Colony.sol b/contracts/Colony.sol index 1b6169479f..c91f6d2ee3 100755 --- a/contracts/Colony.sol +++ b/contracts/Colony.sol @@ -118,6 +118,7 @@ contract Colony is ColonyStorage, PatriciaTreeProofs { } function addDomain(uint256 _parentDomainId) public + domainExists(_parentDomainId) auth { // Note: Remove when we want to allow more domain hierarchy levels diff --git a/test/meta-colony.js b/test/meta-colony.js index af17756367..08db98d49c 100644 --- a/test/meta-colony.js +++ b/test/meta-colony.js @@ -283,7 +283,7 @@ contract("Meta Colony", accounts => { assert.equal(rootSkillChild.toNumber(), 4); }); - it("should NOT be able to add a child local skill more than one level from the root local skill", async () => { + it("should NOT be able to add a child domain more than one level away from the root domain", async () => { await metaColony.addDomain(1); await checkErrorRevert(metaColony.addDomain(2));