Return an array of structs using events?

by Bryan Campbell   Last Updated July 11, 2019 20:28 PM - source

I wan’t my function to spit out an array of structs. I know this is not straightforwardly possible. What is the best way for me to proceed? Should I loop through my array in my function and trigger an event each time to return the arguments of each struct separately? Should I create a large json object by looping through my array and spit it out as a string? Is there a more straightforward way of doing this?

Tags : events struct


Related Questions


ParserError: Expected ',' but got identifier

Updated July 01, 2019 12:28 PM



Passing in an array of complex structs

Updated February 08, 2019 21:28 PM