I have a following struct,
struct Funds {
uint amount;
address sender;
uint time;
}
Funds[] public fundArray;
function StructsDemo() public{
fundArray.push(Funds(100,0xca35b7d915458ef540ade6068dfe2f44e8fa733c, 12345678910));
fundArray.push(Funds(200,0xca35b7d915458ef540ade6068dfe2f44e8fa733c, 12345678910));
}
function getArray() public view returns(Funds[] array){
return fundArray;
}
When I run getArray() function, it returns me following error: error: Failed to decode output: Error: Unsupported or invalid type: tuple
I'm intending to print whole of the array, any suggestions will be appreciated. Thanks