Forráskód Böngészése

Change visibility of fallbacks to external

Alejandro Santander 7 éve
szülő
commit
bb1736e376

+ 1 - 1
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);
   }
 

+ 1 - 1
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);
   }
 

+ 1 - 1
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 {}
 }