Guys I have a mapping (uint => struct) with the struct having a property of sold(bool)
Its for a marketplace im trying to make
Now I need the front end to pull that info and filter by not sold and render it

What would be the easiest way to do this?

I thought about maybe adding a function that returns an array with the unsold items, but im not sure how effective that will be.

I was trying to call the struct function with every single number then filter it but that’s just too many calls at once

Not sure but i will appreciate any advice you guys have for me. Thanks

Jun 6, 2022, 12:16 PM

© 2024 Draquery.com All rights reserved.