Let's say I have a method:
function appendNewName(string name) {
names.push(name);
}
I want to store this in the backend in DB once a new name is inserted. How can I achieve that? Unfortunately this
function getNames() returns (string[] names) {
return names;
}
doesn't work because of the way Ethereum stores data. And with events I might miss some of the new names, right? So, what is the solution?