I have a function which when deployed through Remix on the Javascript VM perfectly fine returns a contract address for the new contract, however, I'm not able to get it to return the new contract address when I deploy to Rinkeby or Ropsten?
function addNewContract(string _aa string _bb, string _cc, address _aa, bool _created, address _bb, address _cc) external onlyOwner returns(address newContract) {
Contract c = new Contract(_aa, _bb, _cc, _aa, _registeredBusiness, _bb, _cc);
associatedContracts.push(address(c));
return address(c);
}
am I looking in the wrong place or is the issue related to something else, should I be approaching a testnet differently than the Javascript VM - how can I retrieve the address?