Deployment
Understand the differences in deploying smart contracts on ZKSync using foundry-zksync.
Address Derivation
function computeCreate2Address(
address deployer,
bytes32 salt,
bytes memory bytecode
) public pure returns (address) {
return address(uint160(uint(keccak256(abi.encodePacked(
bytes1(0xff),
deployer,
salt,
keccak256(bytecode)
)))));
}Batch Transactions
Bytecode Hash
Last updated