Updates docs to new constructor syntax.

This commit is contained in:
Erik Kundt
2018-07-02 16:25:54 +02:00
parent da60fdab37
commit e16e37f507
7 changed files with 23 additions and 39 deletions
+4 -4
View File
@@ -28,7 +28,7 @@ become the new richest.
::
pragma solidity ^0.4.11;
pragma solidity ^0.4.24;
contract WithdrawalContract {
address public richest;
@@ -36,7 +36,7 @@ become the new richest.
mapping (address => uint) pendingWithdrawals;
function WithdrawalContract() public payable {
constructor() public payable {
richest = msg.sender;
mostSent = msg.value;
}
@@ -65,13 +65,13 @@ This is as opposed to the more intuitive sending pattern:
::
pragma solidity ^0.4.11;
pragma solidity ^0.4.24;
contract SendContract {
address public richest;
uint public mostSent;
function SendContract() public payable {
constructor() public payable {
richest = msg.sender;
mostSent = msg.value;
}