I have a use case where I want to whitelist some smart contracts in one Base contract.
The condition for whitelisting is that smart contract should have been deployed using the same code that was shared through my system.
Now, to validate this I want to get the entire hex-code that was used to deploy a smart contract, given that we just have the smart contract address. I want to get this information through solidity so that it can be used in a different smart contract.
I tried to get the variable
msg.data, during the contract deployment, but it seems like that does not give the full hex-code, rather it gives just the code for the executed function.