main contract function which calls my secondary contract
function gameOver(uint _matchId)public payable onlyOwner returns(bool) {
Match my_match = Match(matchTracker[_matchId]);
bool success = my_match.destroy(msg.sender);
if(success == true)
delete matchTracker[_matchId];
return success;
}
here matchTracker stores the Address of each of the Match contracts
Match contract destroy function
function destroy (address payable _owner)external returns(bool)
{ require(_owner == owner);
selfdestruct(owner);
return true;
}
Can anyone identify what is wrong? solidity version in use is 0.5.13