Skip to content

Commit

Permalink
Changes following Alex's review
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed Jul 10, 2018
1 parent fc6166d commit b827071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/Colony.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/meta-colony.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit b827071

Please sign in to comment.