Skip to content

Commit

Permalink
Merge pull request openbuildxyz#1279 from anderfib/task8
Browse files Browse the repository at this point in the history
task8: anderfib
  • Loading branch information
ourai authored Jul 15, 2024
2 parents a355471 + 4582a27 commit 052787c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions members/anderfib/task8/TestSol.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract TestSol {
uint public unlockTime;
address payable public owner;

event Withdrawal(uint amount, uint when);

constructor(uint _unlockTime) payable {
owner = payable(msg.sender);
}

function withdraw() public {
require(msg.sender == owner, "You aren't the owner");
emit Withdrawal(address(this).balance, block.timestamp);
owner.transfer(address(this).balance);
}
}
Binary file added members/anderfib/task8/hash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions members/anderfib/task8/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
chain explorer url:
https://explorer-holesky.morphl2.io/address/0xd038F18Ab08441C48D57407E49Fca4D116534AAE?tab=contract


0 comments on commit 052787c

Please sign in to comment.