Closed
Description
State DB itself hashes the key before it accesses to TrieDB
or TrieDBMut
.
So hashing a key before calling DB functions is a redundant job.
There might be other spots with same issue but the only thing I could find was this: https://github.com/CodeChain-io/foundry/blob/ics-poc/state/src/traits.rs#L116
Note that the action_data
has same problem, but will be removed soon.