All - Activity - MatBarons - Algorand

DynamicArray add element

The array type isn’t custom, I used DynamicArray. However, the elements in the array are custom type. The problem is that I can’t find a way to add an element to the array, even if the element type is a base type. For example, there is not .add() method and the .set() method doesn’t work that way.


Hi everyone, I’m new to Algorand and I’m having some difficulties on Boxes and Arrays. I need to store an array into a box and, when asked, to add an element to that array. The array element type is a custom class I created. The main problem is that I can’t find a way to add the element once I retrieve it.