I need to use
HashMap in my struct that I store in StorageMap. As I searched online and other Substrate pallets, I didn't see that being used.
I came across
use scale_info::prelude::collections::HashMap; but I don't think it's SCALE encodable.
Is there a way to use a
HashMap in my pallet? What are the best practices or alternatives that I can use?