* Consolidted ERC20 Interface and Implementation Files * Fixed CanReclaimToken's tests to use StandardTokenMock instead of BasicTokenMock * Changed token's variable type in TokenTimelock to ERC20 * Merged the StandardBurnableToken with BurnableToken since it now inherits from StandardToken; Fixed TokenTimelock so it uses SafeERC20 for ERC20 * Fixed variable type for _token in TokenTimelock constructor * Fixed linting warning in BurnableToken * Added back burnFrom tests.
36 lines
796 B
Solidity
36 lines
796 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "./CanReclaimToken.sol";
|
|
|
|
|
|
/**
|
|
* @title Contracts that should not own Tokens
|
|
* @author Remco Bloemen <remco@2π.com>
|
|
* @dev This blocks incoming ERC223 tokens to prevent accidental loss of tokens.
|
|
* Should tokens (any ERC20 compatible) end up in the contract, it allows the
|
|
* owner to reclaim the tokens.
|
|
*/
|
|
contract HasNoTokens is CanReclaimToken {
|
|
|
|
/**
|
|
* @dev Reject all ERC223 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
|
|
pure
|
|
{
|
|
_from;
|
|
_value;
|
|
_data;
|
|
revert();
|
|
}
|
|
|
|
}
|