Verified contractPartial
Opener
Address0x93c38ffb81c84f028db33191d8a4a72a153c0267
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.4.24
- Same code
139 more contracts
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,045,671
- Creation transaction
- 0xd1e2549d75…8e09a4bef3
Opener.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;
contract Target {
function withdraw() public;
}
contract Child {
constructor(address target) public payable {
Target t = Target(target);
target.call.value(msg.value)();
t.withdraw();
selfdestruct(msg.sender);
}
}
contract Opener {
function open(address target) public payable {
(new Child).value(msg.value)(target);
msg.sender.call.value(address(this).balance)();
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.