I'm have an object with around 25 fields in it.
int idOfObjectTracker;
mapping (uint => object)listofobjects;
struct object {
string _1;
string _2;
...
string _25;
}
i'm trying to " modifiy all the propreties at once.
function newObject(string _1,string _2,...){
object o = listofobjects[idOfObjectTracker++]
o._1 = _1;
....
o._25 = _25;
}
Obviously this doesn't work and i can't seem to find a workaround since i don't want my client to provide the id so splitting creation in multiple function wouldn't work either since the id would be messed up.
How do you normally proceed in this situation ?