Open anton-trunov opened 2 months ago
We should provide an example of how to emulated binary maps of pseudo-type map<(K1, K2), V> using hashes and a map of type map<Int, V>
map<(K1, K2), V>
map<Int, V>
SomeStruct.toCell().hash() for the hashing?
SomeStruct.toCell().hash()
I think this is going to be expensive because the cell-creating operation (ENDC) costs 518 gas units. We should use hashing of the keys directly.
ENDC
We should provide an example of how to emulated binary maps of pseudo-type
map<(K1, K2), V>
using hashes and a map of typemap<Int, V>