Verified contractPartial
CreateCall
Address0xd535c9ac8df2adddc92fffdc827cb736901668b9
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.5.8
- Same code
3 more contracts
Details
- Compiler
- solc 0.5.8+commit.23d335f2
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,624,872
- Creation transaction
- 0x6c7cd58451…44db2bf36e
CreateCall.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity >=0.5.0 <0.7.0;
contract CreateCall {
event ContractCreation(address newContract);
function performCreate2(uint256 value, bytes memory deploymentData, bytes32 salt) public returns(address newContract) {
// solium-disable-next-line security/no-inline-assembly
assembly {
newContract := create2(value, add(0x20, deploymentData), mload(deploymentData), salt)
}
require(newContract != address(0), "Could not deploy contract");
emit ContractCreation(newContract);
}
function performCreate(uint256 value, bytes memory deploymentData) public returns(address newContract) {
// solium-disable-next-line security/no-inline-assembly
assembly {
newContract := create(value, add(deploymentData, 0x20), mload(deploymentData))
}
require(newContract != address(0), "Could not deploy contract");
emit ContractCreation(newContract);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.