Good day.
I have a struct object called HomeWork
HomeWork[] public homeworks;
struct HomeWork{
uint256 assignId;
string description;
mapping(address=>uint256)handedAt;
mapping(address=>bool)passedOrFailed;
};
As you can see, this object contains nested mappings inside.
I'm trying to interact with this object using web3.
contract = web3.eth.contract([ABI]).at("0x0..");
var homeworks = contract.homeworks();
But when I'm examining specific instance, I can't get any information about the mappings:
[>homeworks(2)]
[>BigNumber, "this is description for item number 3"] * there should be 2 mappings here *
That's it. the mappings aren't there at all.
Any idea what might be the problem?