git checkout exercise-05
Write your code inside contracts/MultiSigWallet.sol
Complete the revokeConfirmation
function
function revokeConfirmation(uint _txIndex)
public
{
}
- Add appropriate modifiers
- only owner should be able to call this function
- transaction at
_txIndex
must exist - transaction at
_txIndex
must be executed
- Revoke the confirmation
- require that
msg.sender
has confirmed the transaction - set
isConfirmed
tofalse
formsg.sender
- decrement
numConfirmations
by 1 - emit
RevokeConfirmation
- require that
event RevokeConfirmation(address indexed owner, uint indexed txIndex);
Test your code
npm test
git checkout exercise-05-solution