Browse Source

made remaining public fallback functions external (#1080)

Doug Crescenzi 7 years ago
parent
commit
ce0c3274ee
2 changed files with 2 additions and 2 deletions
  1. 1 1
      contracts/examples/SimpleSavingsWallet.sol
  2. 1 1
      contracts/payment/SplitPayment.sol

+ 1 - 1
contracts/examples/SimpleSavingsWallet.sol

@@ -24,7 +24,7 @@ contract SimpleSavingsWallet is Heritable {
   /**
    * @dev wallet can receive funds.
    */
-  function () public payable {
+  function () external payable {
     emit Received(msg.sender, msg.value, address(this).balance);
   }
 

+ 1 - 1
contracts/payment/SplitPayment.sol

@@ -32,7 +32,7 @@ contract SplitPayment {
   /**
    * @dev payable fallback
    */
-  function () public payable {}
+  function () external payable {}
 
   /**
    * @dev Claim your share of the balance.