mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
468 B
Solidity
22 lines
468 B
Solidity
|
pragma solidity ^0.4.11;
|
||
|
|
||
|
import './StandardToken.sol';
|
||
|
import '../lifecycle/Pausable.sol';
|
||
|
|
||
|
/**
|
||
|
* Pausable token
|
||
|
*
|
||
|
* Simple ERC20 Token example, with pausable token creation
|
||
|
**/
|
||
|
|
||
|
contract PausableToken is StandardToken, Pausable {
|
||
|
|
||
|
function transfer(address _to, uint _value) whenNotPaused {
|
||
|
super.transfer(_to, _value);
|
||
|
}
|
||
|
|
||
|
function transferFrom(address _from, address _to, uint _value) whenNotPaused {
|
||
|
super.transferFrom(_from, _to, _value);
|
||
|
}
|
||
|
}
|