This code returns the address perfectly when i run it on ganache local chain but when i run this on ropsten it just returns a "-"
Any idea on what the problem is?
function newMatch(uint _matchId,uint _noOfGames,uint _oddsOfA, uint _oddsOfB) public returns(address newContract)
{
Match c = new Match(_matchId,_noOfGames,_oddsOfA,_oddsOfB);
matchTracker[_matchId] = addr;
count++;
return address(c);
}
matchTrackerarray, by calling the public getter functionmatchTracker(index), whereindexis the length of thematchTrackerarray minus 1 (you'll also need to add aviewfunction to return the length of this array). – goodvibration Nov 22 '19 at 12:56