I have a mapping(string => Person) public map
:
struct Person {
string name;
string description;
address primaryAddress;
string linkToWebsite;
string linkToPicture;
address secondaryAddress;
uint age;
}
, this struct is only made of strings, addresses and uints, but when compiling I get this error.
Internal compiler error: Accessors for mapping with dynamically-sized keys not yet implemented.
BUT,
From Solidity Features:
Strings as Mapping Keys
Strings are allowed as keys for mappings.
contract C { mapping (string => uint) counter; function inc(string _s) { counter[_s]++; } }
Any help with it?