From 5339ebecffd286f6fe1156c00048add3350d3309 Mon Sep 17 00:00:00 2001 From: p-s-dev
Date: Mon, 20 Jun 2016 06:28:09 -0700 Subject: [PATCH] check to prevent wallet created with more _required than _owners --- wallet/wallet.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/wallet/wallet.sol b/wallet/wallet.sol index c522a9b..bc8fad2 100644 --- a/wallet/wallet.sol +++ b/wallet/wallet.sol @@ -52,6 +52,7 @@ contract multiowned { // constructor is given number of sigs required to do protected "onlymanyowners" transactions // as well as the selection of addresses capable of confirming them. function multiowned(address[] _owners, uint _required) { + if (_required > 1 && _owners.length < _required -1) throw; m_numOwners = _owners.length + 1; m_owners[1] = uint(msg.sender); m_ownerIndex[uint(msg.sender)] = 1;