Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tutorial-24/MultiSigWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract MultiSigWallet {
event WithdrawFunds(address to, uint amount);
event TransferFunds(address from, address to, uint amount);

function MultiSigWallet()
constructor()
public {
_owner = msg.sender;
}
Expand All @@ -39,23 +39,23 @@ contract MultiSigWallet {
function ()
public
payable {
DepositFunds(msg.sender, msg.value);
emit DepositFunds(msg.sender, msg.value);
}

function withdraw(uint amount)
validOwner
public {
require(address(this).balance >= amount);
msg.sender.transfer(amount);
WithdrawFunds(msg.sender, amount);
emit WithdrawFunds(msg.sender, amount);
}

function transferTo(address to, uint amount)
validOwner
public {
require(address(this).balance >= amount);
msg.sender.transfer(amount);
TransferFunds(msg.sender, to, amount);
to.transfer(amount);
emit TransferFunds(msg.sender, to, amount);
}

}
}