Contract Address Details

0x4a27c059FD7E383854Ea7DE6Be9c390a795f6eE3

Contract Name
Create2Deployer
Creator
0x2287fa–9a357a at 0x0151c2–8e85c5
Balance
0 CELO
Tokens
Fetching tokens...
Transactions
Transfers
Gas Used
Last Balance Update
9436678
This contract has been partially verified via Sourcify. View contract in Sourcify repository
Contract name:
Create2Deployer




Optimization enabled
false
Compiler version
v0.5.17+commit.d19bba13




EVM Version
istanbul




Verified at
2021-08-21 04:24:08.632228Z

Contract source code

pragma solidity 0.5.17;
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);
}
}

Contract ABI

[{"type":"event","name":"Deployed","inputs":[{"type":"address","name":"addr","internalType":"address","indexed":false},{"type":"uint256","name":"salt","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"deploy","inputs":[{"type":"bytes","name":"code","internalType":"bytes"},{"type":"uint256","name":"salt","internalType":"uint256"}],"constant":false}]
            

Deployed ByteCode

Verify & Publish
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80639c4ae2d014610030575b600080fd5b6100f36004803603604081101561004657600080fd5b810190808035906020019064010000000081111561006357600080fd5b82018360208201111561007557600080fd5b8035906020019184600183028401116401000000008311171561009757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291905050506100f5565b005b6000818351602085016000f59050803b61010e57600080fd5b7fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e18183604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a150505056fea265627a7a72315820d9c09b41b3c6591ba80cae0b1fbcba221c30c329fceb03a0352e0f93fb79893264736f6c63430005110032