I have a factory contract that deploys child contracts, to complete a challenge on Ethernauts. I would like to retrieve the deployment bytecode for one of the child contracts, but I'm having trouble finding it.
I've looked up the child contract address on Etherscan, but it only shows the runtime bytecode. I've also tried using the getCode function in Web3 to retrieve the bytecode, but that also returns the runtime bytecode.
Is there any way to retrieve the deployment bytecode for a contract that was created from a factory? Or is the deployment bytecode lost once the contract is deployed?