A
Size: a a a
A
EP
A
A
A
V
A
NC
A
NC
SA
SA
RM
RM
V
V
V
contract WalletFactory{
// ....
function deployWallet(address designatedOwner, uint256 salt){
bytes memory initCode = abi.encodePacked(type(Wallet).creationCode, designatedOwner);
address deployedContract;
assembly{
deployedContract := create2(0, add(initCode, 0x20), mload(initCode), salt)
}
emit ContractDeployed(deployedContract);
}
}