I have a problem with the below code, specifically samplestruct2
struct samplestruct1 {
string name;
}
struct samplestruct2{
string name;
mapping (int => samplestruct1) s1s;
}
function createSampleStruct2(string name) {
samplestruct2 s2;
s2.name = name;
...
}
samplestruct2 s2
is giving me a warning : "uninitilized storage pointer"
I also tried samplestruct2 s2 = samplestruct2(name)
, it gives me also an error