© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
David B
I have a smart contract to hold some ether, and I want the ether to return to the owner after a certain time period. May I know how can I achieve that?
Santiago Del Valle
Solidity Developer
function return() external onlyOwner { require(now > deadline); msg.sender.transfer(address(this).balance); }
Santiago Del Valle
Solidity Developer
function return() external onlyOwner { require(now > deadline); msg.sender.transfer(address(this).balance); }