Replies: 2 comments
-
There is no explicit limit for vec length, but the limit you will most likely run into is the length limit for storage values. So you need to make sure that when you serialize your value and save it in storage, the serialized value is smaller than that limit. I would recommand to keep a little buffer in-between, in case we ever need to lower the limit in the future. Also keep in mind that reading and writing storage takes more gas depending on the size of the value. |
Beta Was this translation helpful? Give feedback.
-
Looking at the use case above (what I can guess from it), it makes sense to store it in a cw-storage-plus |
Beta Was this translation helpful? Give feedback.
-
What is the maximum length of vec in cosmwasm? I might set up a maximum of 15625 whitelists, but I'm concerned that this would exceed the vec length limit. Also the max block limit for our chain is 22MB.
this is my code:
Beta Was this translation helpful? Give feedback.
All reactions