Closed josepot closed 1 year ago
The hash
is the hash of the value associated to the given key. For example, if you query the hash
of :code
, you get the hash of the runtime code.
The
hash
is the hash of the value associated to the given key
Ahhhhh! I see... Ok, now I get it! 😅 Thanks!
I'm sure that I must be missing something, but I don't quite understand what the type
hash
is meant to return on achainHead_unstable_storage
item request.Isn't the returned
hash
the same as thekey
that was being used for querying thehash
? 🤔 If that's the case, then do we really need the typehash
? I guess that it could be useful for determining whether an entry actually exists?Also, if what I've said so far is correct, then: do we really need the
hash
property on the responded item? Wouldn't the value of thehash
property always be identical to the value of thekey
property (for bothhash
anddescendants-hashes
responses)? 🤔Again, I'm sure that I must be missing something 😬😅.
cc: @tomaka