Skip to content

Instantly share code, notes, and snippets.

View KrzysztofWelc's full-sized avatar

Krzysztof Welc KrzysztofWelc

View GitHub Profile
@KrzysztofWelc
KrzysztofWelc / Account.sol
Created September 5, 2021 15:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
contract TimeLock{
address payable beneficiary;
uint256 releaseTime;
constructor(address payable _beneficiary, uint256 _releaseTime) public{
require(_releaseTime > block.timestamp);
beneficiary = _beneficiary;
releaseTime = _releaseTime;