You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Create an array(address type) which stores only 16 elements
address[16] team;
//getTeamPlayers() - To return the entire array elements.
function getTeamPlayers() public view returns (address[16] memory) {
return team;
}
//selectJerseyNumber() - It will take only one argument of uint type and returns the players address from the array created above. a) The argument passed into the function must be greater than equal to zero and less than equal to 15.
function selectJerseyNumber(uint256 playerId) public returns (uint256) {