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
8 changes: 4 additions & 4 deletions tutorial-14/EtherTransfer.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.4.0;
pragma solidity ^0.5.0;

contract EtherTransferTo {
function () public payable {
function () external payable {
}

function getBalance() public returns (uint) {
Expand All @@ -13,7 +13,7 @@ contract EtherTransferFrom {

EtherTransferTo private _instance;

function EtherTransferFrom() public {
constructor() public {
// _instance = EtherTransferTo(address(this));
_instance = new EtherTransferTo();
}
Expand All @@ -27,7 +27,7 @@ contract EtherTransferFrom {
return _instance.getBalance();
}

function () public payable {
function () external payable {
//msg.sender.send(msg.value);
address(_instance).send(msg.value);
}
Expand Down