Skip to content
Verified contractPartial

Create2Deployer

Address0x44b5035e934fd3e31d178665e36ffe96ac1dafbc
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.5.8

 

Same code

1 more contract

 

Details

Compiler
solc 0.5.8+commit.23d335f2
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,043,220
Creation transaction
0x50270bef95…feb4e4d2f9
Main copy (most transactions)
0x25c8faec…728d9a3b

fa76e1d4aedf01901d6683c7bd01909187d5805e_Create2Deployer.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
/**
 *Submitted for verification at Etherscan.io on 2021-11-25
*/

pragma solidity 0.5.8;
 
contract Create2Deployer {
  event Deployed(address addr, uint256 salt);
 
  function deploy(bytes memory code, uint256 salt) public {
    address addr;
    assembly {
      addr := create2(0, add(code, 0x20), mload(code), salt)
      if iszero(extcodesize(addr)) {
        revert(0, 0)
      }
    }
 
    emit Deployed(addr, salt);
  }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.