Commit fad28700 by Manuel Araoz

7.2 add preconditions to Shareable contructor

parent cd9f820b
...@@ -64,6 +64,9 @@ contract Shareable { ...@@ -64,6 +64,9 @@ contract Shareable {
ownerIndex[_owners[i]] = 2 + i; ownerIndex[_owners[i]] = 2 + i;
} }
required = _required; required = _required;
if (required > owners.length) {
throw;
}
} }
// Revokes a prior confirmation of the given operation // Revokes a prior confirmation of the given operation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment