Fallback function has to be external: backwards-compatible changes.

This commit is contained in:
chriseth
2018-06-29 00:23:52 +02:00
parent 4268062985
commit eeef82b2d7
43 changed files with 123 additions and 105 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ contract Bounty is PullPayment, Destructible {
/**
* @dev Fallback function allowing the contract to recieve funds, if they haven't already been claimed.
*/
function() payable {
function() external payable {
if (claimed) {
throw;
}
@@ -39,7 +39,7 @@ contract MultisigWallet is Multisig, Shareable, DayLimit {
/**
* @dev Fallback function, receives value and emits a deposit event.
*/
function() payable {
function() external payable {
// just being sent some cash?
if (msg.value > 0)
emit Deposit(msg.sender, msg.value);
@@ -61,7 +61,7 @@ contract Crowdsale {
// fallback function can be used to buy tokens
function () payable {
function () external payable {
buyTokens(msg.sender);
}