Skip to content

Fix: do not use consume_read_gas before checking existence in `find`

Weihang Lo requested to merge wh@fix-find-get-logic into marigold@storage-cache

The consume_read_gas in storage_functor is not a pure gas consumption funciton. Some of the implementations imply a read for len_name data from disk storage. In previous MRs (!18 (merged), !20 (closed)) we accidentally misused it, and here we separate get and find to avoid the Missing key error.

Merge request reports