If a smart contract has the compiled bytecode for a contract can the first deploy a subsequent contract?
According to Ethereum.org: "To deploy a smart contract, you merely send an Ethereum transaction containing the compiled code of the smart contract without specifying any recipient."
I looked for how to send a transaction via smart contracts and the closest I could find were examples for transferring ETH...
_to.transfer(msg.value);
bool sent = _to.send(msg.value);
(bool sent, bytes memory data) = _to.call{value: msg.value}("");