aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/ownership/HasNoTokens.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/compilationTests/zeppelin/ownership/HasNoTokens.sol')
-rw-r--r--test/compilationTests/zeppelin/ownership/HasNoTokens.sol10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/compilationTests/zeppelin/ownership/HasNoTokens.sol b/test/compilationTests/zeppelin/ownership/HasNoTokens.sol
index d1dc4b3e..079cef7c 100644
--- a/test/compilationTests/zeppelin/ownership/HasNoTokens.sol
+++ b/test/compilationTests/zeppelin/ownership/HasNoTokens.sol
@@ -3,7 +3,7 @@ pragma solidity ^0.4.11;
import "./Ownable.sol";
import "../token/ERC20Basic.sol";
-/**
+/**
* @title Contracts that should not own Tokens
* @author Remco Bloemen <remco@2π.com>
* @dev This blocks incoming ERC23 tokens to prevent accidental loss of tokens.
@@ -12,14 +12,14 @@ import "../token/ERC20Basic.sol";
*/
contract HasNoTokens is Ownable {
- /**
+ /**
* @dev Reject all ERC23 compatible tokens
* @param from_ address The address that is transferring the tokens
* @param value_ uint256 the amount of the specified token
* @param data_ Bytes The data passed from the caller.
*/
- function tokenFallback(address from_, uint256 value_, bytes data_) external {
- throw;
+ function tokenFallback(address from_, uint256 value_, bytes calldata data_) external {
+ revert();
}
/**
@@ -28,7 +28,7 @@ contract HasNoTokens is Ownable {
*/
function reclaimToken(address tokenAddr) external onlyOwner {
ERC20Basic tokenInst = ERC20Basic(tokenAddr);
- uint256 balance = tokenInst.balanceOf(this);
+ uint256 balance = tokenInst.balanceOf(address(this));
tokenInst.transfer(owner, balance);
}
}