/Return-Struct-Example

An example of extracting and returning data inside a struct

Primary LanguageJavaScript

Returning structs in Solidity

The latest version of solidity currently does not support returning structs from functions.

However, you can unpack the contents of a struct and return each item individually.

From a JS perspective, you get an entire array worth of data