Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- AltaCreate2Deployer
- Optimization enabled
- true
- Compiler version
- v0.8.13+commit.abaa5c0e
- Optimization runs
- 200
- EVM Version
- london
- Verified at
- 2026-04-22T08:16:16.497783Z
contracts/AltaCreate2Deployer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract AltaCreate2Deployer {
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 Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"london","compilationTarget":{"contracts/AltaCreate2Deployer.sol":"AltaCreate2Deployer"}}
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","outputs":[],"name":"deploy","inputs":[{"type":"bytes","name":"code","internalType":"bytes"},{"type":"uint256","name":"salt","internalType":"uint256"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b506101a6806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80639c4ae2d014610030575b600080fd5b61004361003e3660046100bb565b610045565b005b6000818351602085016000f59050803b61005e57600080fd5b604080516001600160a01b0383168152602081018490527fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e1910160405180910390a1505050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156100ce57600080fd5b823567ffffffffffffffff808211156100e657600080fd5b818501915085601f8301126100fa57600080fd5b81358181111561010c5761010c6100a5565b604051601f8201601f19908116603f01168101908382118183101715610134576101346100a5565b8160405282815288602084870101111561014d57600080fd5b82602086016020830137600060209382018401529896909101359650505050505056fea2646970667358221220598855cc7ec94e0c5f33e75286061632c77f99dffb874fd432dc7d0811ad9b2564736f6c634300080d0033
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80639c4ae2d014610030575b600080fd5b61004361003e3660046100bb565b610045565b005b6000818351602085016000f59050803b61005e57600080fd5b604080516001600160a01b0383168152602081018490527fb03c53b28e78a88e31607a27e1fa48234dce28d5d9d9ec7b295aeb02e674a1e1910160405180910390a1505050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156100ce57600080fd5b823567ffffffffffffffff808211156100e657600080fd5b818501915085601f8301126100fa57600080fd5b81358181111561010c5761010c6100a5565b604051601f8201601f19908116603f01168101908382118183101715610134576101346100a5565b8160405282815288602084870101111561014d57600080fd5b82602086016020830137600060209382018401529896909101359650505050505056fea2646970667358221220598855cc7ec94e0c5f33e75286061632c77f99dffb874fd432dc7d0811ad9b2564736f6c634300080d0033