shawntabrizi / substrate-collectables-workshop

A guided tutorial for building an NFT marketplace with the Polkadot SDK
https://www.shawntabrizi.com/substrate-collectables-workshop/
MIT License
237 stars 101 forks source link

Explanation on why handling lists in runtimes is dangerous #110

Closed endor closed 3 months ago

endor commented 5 years ago

There's a section that says "Substrate does not natively support a list type since it may encourage dangerous habits.". Then in the auctions code a Vec is used, which is a kind of list and there is/was also a StorageList in substrate. I think it could be useful to expand on that section and maybe add a link to some material that explains better what exactly is dangerous and why and what can be done to avoid it.