My use case: I have to keep track of all "submitted quotations" from one person to another.
My solution: For this I am keeping a mapping of uint and struct mapping (uint => quotation) allQuoatations. I am appending inside this method on addQuoatation method.
- Is it the correct way to model arrays.
- Should I only keep last quotation inside contract, remove the array and emit an event after addition of quotation.