If one imports another contract and instantiates it with 'new', then I assume the binary of that imported contract must be fully included in my contract (increasing its deployment size accordingly).
If I instantiate the imported contract using an already deployed address however, does that also include that binary data into my contract when I deploy it?
How about if I don't instantiate it at all, but only use a enum or struct definition from that contract. Will the entire binary of the imported contract be added to my contract's binary?
ImportedContract c = new ImportedContract();what if ImportedContract has already been deployed and I'll doImportedContract c = ImportedContract(contractAddress);- will this also append the entire ImportedContract binary to my contract? – matthias_buehlmann Aug 23 '18 at 11:33contractAddresscan be treated as anImportedContract, and it's reference is to be stored inc. – Henk Aug 23 '18 at 11:45