Change pallet referenda TracksInfo::tracks to return an iterator (#2072)
Returning an iterator in `TracksInfo::tracks()` instead of a static
slice allows for more flexible implementations of `TracksInfo` that can
use the chain storage without compromising a lot on the
performance/memory penalty if we were to return an owned `Vec` instead.
---------
Co-authored-by:
Pablo Andrés Dorado Suárez <hola@pablodorado.com>
parent
8cca727f