Skip to content

Instantly share code, notes, and snippets.

@izqui izqui/TimeLock.sol Secret
Created Sep 24, 2018

What would you like to do?
contract TimeLock is LockManager {
function canUnlock(bytes32, bytes lockData) public view returns (bool) {
uint256 fromTime = 0; // TODO: extract uint256 from lockData
uint256 toTime = 1000; // TODO: extract uint256 from lockData
return now < fromTime || now >= toTime;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.