mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-01-09 10:32:12 +00:00
516ea30fe6
This reverts commit 1ea3b8b1490b919c20e66519a47796ee7bce0fe5.
27 lines
677 B
Solidity
27 lines
677 B
Solidity
pragma solidity ^0.4.23;
|
|
|
|
import "./StandardToken.sol";
|
|
import './ApprovalReceiver.sol';
|
|
|
|
/**
|
|
* @notice ERC20Token for test scripts, can be minted by anyone.
|
|
*/
|
|
contract TestToken is StandardToken {
|
|
|
|
constructor() public { }
|
|
|
|
/**
|
|
* @notice any caller can mint any `_amount`
|
|
* @param _amount how much to be minted
|
|
*/
|
|
function mint(uint256 _amount) public {
|
|
mint(msg.sender, _amount);
|
|
}
|
|
|
|
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
|
|
assert(approve(_spender, _value));
|
|
return ApprovalReceiver(_spender).receiveApproval(msg.sender, _value, this, _extraData);
|
|
}
|
|
|
|
}
|