While trying to fetch more than 6 variables I am having an issue.
/**
* Get data based on report id
*/
function getData(uint256 id)
public
view
returns (
address,
string memory,
uint256[] memory,
uint256[] memory,
string memory,
uint256 date,
string memory
)
{
return (
data[id].owner,
data[id].definition,
data[id].support,
data[id].likes,
data[id].byteHash,
data[id].date,
data[id].text
);
}
How can I return more variables from a single get method without splitting them into two?