From fad287007b90b9259041b94c2f23bd3afee6b812 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 20 Mar 2017 18:18:32 -0300 Subject: [PATCH] 7.2 add preconditions to Shareable contructor --- contracts/ownership/Shareable.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/ownership/Shareable.sol b/contracts/ownership/Shareable.sol index 0cbf7d37d..8b8477d41 100644 --- a/contracts/ownership/Shareable.sol +++ b/contracts/ownership/Shareable.sol @@ -64,6 +64,9 @@ contract Shareable { ownerIndex[_owners[i]] = 2 + i; } required = _required; + if (required > owners.length) { + throw; + } } // Revokes a prior confirmation of the given operation