diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 00:08:45 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-06-29 06:23:52 +0800 |
commit | eeef82b2d77c6f956039c57b0598e684254ee6dd (patch) | |
tree | 82887915936dbf242d5574c1fe9d61f5ace312d9 /test/compilationTests | |
parent | 4268062985e434b00f07e3f90772b94538933b9c (diff) | |
download | dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.gz dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.bz2 dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.lz dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.xz dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.tar.zst dexon-solidity-eeef82b2d77c6f956039c57b0598e684254ee6dd.zip |
Fallback function has to be external: backwards-compatible changes.
Diffstat (limited to 'test/compilationTests')
-rw-r--r-- | test/compilationTests/MultiSigWallet/MultiSigWallet.sol | 1 | ||||
-rw-r--r-- | test/compilationTests/corion/ico.sol | 2 | ||||
-rw-r--r-- | test/compilationTests/zeppelin/Bounty.sol | 2 | ||||
-rw-r--r-- | test/compilationTests/zeppelin/MultisigWallet.sol | 2 | ||||
-rw-r--r-- | test/compilationTests/zeppelin/crowdsale/Crowdsale.sol | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/test/compilationTests/MultiSigWallet/MultiSigWallet.sol b/test/compilationTests/MultiSigWallet/MultiSigWallet.sol index 78e18f3c..e534d09a 100644 --- a/test/compilationTests/MultiSigWallet/MultiSigWallet.sol +++ b/test/compilationTests/MultiSigWallet/MultiSigWallet.sol @@ -90,6 +90,7 @@ contract MultiSigWallet { /// @dev Fallback function allows to deposit ether. function() + external payable { if (msg.value > 0) diff --git a/test/compilationTests/corion/ico.sol b/test/compilationTests/corion/ico.sol index cb437624..54305d41 100644 --- a/test/compilationTests/corion/ico.sol +++ b/test/compilationTests/corion/ico.sol @@ -275,7 +275,7 @@ contract ico is safeMath { require( msg.sender.send(_val) ); } - function () payable { + function () external payable { /* Callback function. Simply calls the buy function as a beneficiary and there is no affilate address. If they call the contract without any function then this process will be taken place. diff --git a/test/compilationTests/zeppelin/Bounty.sol b/test/compilationTests/zeppelin/Bounty.sol index 91730900..8be16a54 100644 --- a/test/compilationTests/zeppelin/Bounty.sol +++ b/test/compilationTests/zeppelin/Bounty.sol @@ -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; } diff --git a/test/compilationTests/zeppelin/MultisigWallet.sol b/test/compilationTests/zeppelin/MultisigWallet.sol index ea620fc0..96624d3a 100644 --- a/test/compilationTests/zeppelin/MultisigWallet.sol +++ b/test/compilationTests/zeppelin/MultisigWallet.sol @@ -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); diff --git a/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol b/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol index a60a28f8..d798f41d 100644 --- a/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol +++ b/test/compilationTests/zeppelin/crowdsale/Crowdsale.sol @@ -61,7 +61,7 @@ contract Crowdsale { // fallback function can be used to buy tokens - function () payable { + function () external payable { buyTokens(msg.sender); } |