From bb1736e376161c0856e2d554626e6fff8680c7c9 Mon Sep 17 00:00:00 2001 From: Alejandro Santander Date: Thu, 23 Nov 2017 12:28:46 -0300 Subject: [PATCH] Change visibility of fallbacks to external --- contracts/Bounty.sol | 2 +- contracts/crowdsale/Crowdsale.sol | 2 +- test/helpers/SplitPaymentMock.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/Bounty.sol b/contracts/Bounty.sol index a36e61d9c..e1a5acb7c 100644 --- a/contracts/Bounty.sol +++ b/contracts/Bounty.sol @@ -18,7 +18,7 @@ contract Bounty is PullPayment, Destructible { /** * @dev Fallback function allowing the contract to receive funds, if they haven't already been claimed. */ - function() public payable { + function() external payable { require(!claimed); } diff --git a/contracts/crowdsale/Crowdsale.sol b/contracts/crowdsale/Crowdsale.sol index 5565a973b..452bf573a 100644 --- a/contracts/crowdsale/Crowdsale.sol +++ b/contracts/crowdsale/Crowdsale.sol @@ -61,7 +61,7 @@ contract Crowdsale { // fallback function can be used to buy tokens - function () public payable { + function () external payable { buyTokens(msg.sender); } diff --git a/test/helpers/SplitPaymentMock.sol b/test/helpers/SplitPaymentMock.sol index f7a487b57..e884d1af8 100644 --- a/test/helpers/SplitPaymentMock.sol +++ b/test/helpers/SplitPaymentMock.sol @@ -6,5 +6,5 @@ import '../../contracts/payment/SplitPayment.sol'; contract SplitPaymentMock is SplitPayment { function SplitPaymentMock(address[] _payees, uint256[] _shares) public SplitPayment(_payees, _shares) payable {} - function () public payable {} + function () external payable {} }