I have a contract which looks like this:
contract a {
struct Str {
uint256 totalTokens;
mapping(address => uint256) playerTokens;
}
mapping(uint256 => Str) public tokenStores;
}
now assume that we have defined tokenStores as public and a getter method will be automatically allocated, is it possible to access a particular playerTokens value using a key from javascript? Any workaround possible in Solidity ^0.5.0 ??