Why NEAR does not expose iterators #160
MaksymZavershynskyi
started this conversation in
General
Replies: 2 comments 1 reply
-
A follow-up from @ilblackdragon: #159 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@nearmax Thanks for your response. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you might have noticed, NEAR does not allow Wasm contracts iterate over the storage anymore: https://github.com/near/nearcore/blob/1e88c6c699e3a2c49c6cbd09d284f69885982e80/runtime/near-vm-logic/src/logic.rs#L2226-L2298
There are several reasons:
Therefore, from the contract perspective there should be only one way to access the state: key-value lookup/read/write, without any advanced operations that are usually available in key-value storage, e.g. iterators.
Beta Was this translation helpful? Give feedback.
All reactions