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
.
owners
are unique using the isOwner
mappingSet the state variable numConfirmationsRequired from the input.
Test your code
npm test