File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ contract MultiSigWallet {
19
19
event WithdrawFunds (address to , uint amount );
20
20
event TransferFunds (address from , address to , uint amount );
21
21
22
- function MultiSigWallet ()
22
+ constructor ()
23
23
public {
24
24
_owner = msg .sender ;
25
25
}
@@ -39,23 +39,23 @@ contract MultiSigWallet {
39
39
function ()
40
40
public
41
41
payable {
42
- DepositFunds (msg .sender , msg .value );
42
+ emit DepositFunds (msg .sender , msg .value );
43
43
}
44
44
45
45
function withdraw (uint amount )
46
46
validOwner
47
47
public {
48
48
require (address (this ).balance >= amount);
49
49
msg .sender .transfer (amount);
50
- WithdrawFunds (msg .sender , amount);
50
+ emit WithdrawFunds (msg .sender , amount);
51
51
}
52
52
53
53
function transferTo (address to , uint amount )
54
54
validOwner
55
55
public {
56
56
require (address (this ).balance >= amount);
57
- msg . sender .transfer (amount);
58
- TransferFunds (msg .sender , to, amount);
57
+ to .transfer (amount);
58
+ emit TransferFunds (msg .sender , to, amount);
59
59
}
60
60
61
- }
61
+ }
You can’t perform that action at this time.
0 commit comments