Well I have contract which creates another contract:
contractA{
function myMethod(address contractbAddress) payable public{
address contractcAddress = (new contractC).value(msg.value)(msg.sender,address(this),contractbAddress);
contractB(contractbAddress).setContract(msg.sender,contractcAddress);
confirmEvent(msg.sender,contractcAddress);
}
}
contractB{
function setContract(address sender,address contractcAddress){
....
}
}
contractC{
function contractC(address sender,address contractaAddress,address contractbAddress){
....
}
}
I have contractB's address and contractA's address when I deployed them using truffle migrate.
Now when I will call function myMethod using web3, how will it get to know what is contractC because they no longer have the source code of it?