Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 824 Bytes

04-execute-transaction.md

File metadata and controls

49 lines (35 loc) · 824 Bytes

Confirm Transaction

1. Checkout the exercise

git checkout exercise-04

2. Exercise

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 to true
    • execute the transaction using the low level call method
    • require that the transaction executed successfully
    • emit ExecuteTransaction
event ExecuteTransaction(address indexed owner, uint indexed txIndex);

3. Test

Test your code

npm test

4. Solution

git checkout exercise-04-solution