git checkout exercise-00
Write your code inside contracts/MultiSigWallet.sol
Complete the constructor
constructor(address[] memory _owners, uint _numConfirmationsRequired) public {
}
-
Validate
_owner
is not empty -
Validate
_numConfirmationsRequired
is greater than 0 -
Validate
_numConfirmationsRequired
is less than or equal to the number of_owners
-
Set the state variables
owners
from the input_owners
.- Each owner should not be the zero address
- Validate
owners
are unique using theisOwner
mapping
-
Set the state variable numConfirmationsRequired from the input.
Test your code
npm test
git checkout exercise-00-solution