Seems like there are many related questions ex: here, but I still can't believe it is not supported in remix or am I misunderstanding it? seems like it is supported in production.
struct Test {
address receiver;
string date;
}
mapping(address => Test[]) public testInfo;
function getTestInfo(address _account) public constant returns (Test[]) {
return testInfo[_account];
}
Is there anyway to execute that code and return an array of Test?
addresses and 10bytes32s, let's call themreceiversanddates. Each element in those arrays are set to the respective fields of theTestin the original array, e.g.receivers[0] == Tests[0].receiveranddates[0] == Tests[0].date. You can build aTestsarray from this structure in the front-end. – lunr Feb 01 '18 at 00:492018-01-31and what it returns is the address0x323031382d30312d323800000000000000000000000000000000000000000000What can be fixed? – bbusdriver Feb 01 '18 at 01:58uints for dates. – lunr Feb 01 '18 at 02:18