I'm trying to add more then 9 data in public struct it's showing me below error
Internal compiler error: Stack too deep, try removing local variables.
if I remove the public keyword from User public user; then works fine or I maintain 9 data in struct then works fine.
contract UserIndendity{
struct User {
address userAccount;
address photo;
string fName;
string lName;
address signature;
string email;
uint mno;
string street;
string city;
string state;
string country;
}
User public user;
function UserIndendity(address _userAccount,address _photo,string _fName,string _lName,address _signature,string _email,uint _mno,string _street,string _city,string _state,string _country){
user.userAccount=_userAccount;
user.photo=_photo;
user.fName=_fName;
user.lName=_lName;
user.signature=_signature;
user.email=_email;
user.mno=_mno;
user.street=_street;
user.city=_city;
user.state=_state;
user.country=_country;
}
}
any one have solution for above issue?
I have also added issue on Github : Link
