git checkout exercise-04
Write your code inside contracts/MultiSigWallet.sol
Complete the executeTransaction
function
function executeTransaction(uint _txIndex)
public
onlyOwner
txExists(_txIndex)
notExecuted(_txIndex)
{
}
- Execute the transaction
- it should require that
number of confirmations >= numConfirmationsRequired
- set
executed
totrue
- execute the transaction using the low level
call
method - require that the transaction executed successfully
- emit
ExecuteTransaction
- it should require that
event ExecuteTransaction(address indexed owner, uint indexed txIndex);
Test your code
npm test
git checkout exercise-04-solution