Around one year ago I have implemented simple DEX in ink!, but today I want to migrate the code to newest ink!
and I have an error, in the code I have:
use ink_storage::collections::HashMap;
And this line made me strong headache. Is is possible to use HashMap
in ink! If so, how?
I know that the question could be "simple" for someone who writes ink!
on daily basis, but I would say thanks for three cents of empathy and awareness that not everyone writes code in ink!
every day. I was looking for the answer in documentation, and the link that in my humble opinion makes sense, does not work: https://paritytech.github.io/substrate/master/scale_info/prelude/collections/struct.HashMap.html