git checkout exercise-03
Write your code inside contracts/MultiSigWallet.sol
Complete the confirmTransaction
function
function confirmTransaction(uint _txIndex)
public
onlyOwner
txExists(_txIndex)
notExecuted(_txIndex)
notConfirmed(_txIndex)
{
}
txExists
txIndex
existsnotExecuted
txIndex
is not yet executednotConfirmed
txIndex
is not yet confirmed by msg.sender
isConfirmed
to true
for msg.sender
numConfirmation
by 1ConfirmTransaction
event for the transaction being confirmedevent ConfirmTransaction(address indexed owner, uint indexed txIndex);
Test your code
npm test