Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikec/9dedb86ed1d98de6e1388c423abcaa89 to your computer and use it in GitHub Desktop.
Save mikec/9dedb86ed1d98de6e1388c423abcaa89 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.8;
import "./ThresholdPool.sol";
contract ThresholdPoolMock is ThresholdPool () {
uint256 public _now;
function ThresholdPoolMock (
uint256 _poolTime,
uint256 _threshold,
address _recipient,
uint256 _currentTime
) ThresholdPool (_poolTime, _threshold, _recipient) payable {
_now = _currentTime;
startTime = _now;
}
function currentTime() returns (uint256 _currentTime) {
return _now;
}
function changeTime(uint256 _newTime) {
_now = _newTime;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment