I have a contract A that does nothing other than allowing to deploy contracts B and C in functions. Deployment of A exceeds gas limit. Seperate deployment of B and C work fine.
So my naive assumption seems to be wrong: it is much cheaper to provide the functions to A (which arent actually executed on deployment of A) instead of actually deploying B abd C e.g. in the constructor.
Can someone correct me/ give me the background? And maybe give me a hint on how to best deploy tree structures of contracts that depend on previously created ones?
Thanks in adance