Can storage mappings in a contract run out of space? Say that mapping was keyed to an address and the value as the following struct:

User
  bytes32 name
  uint8 age

Theoretically, if there was a user mapped to every possible address, would it ever run out of space? What if the struct had more variables?

Also, side question but on the same note. Do dynamic arrays have a max number of items? Can they only hold up to uint8 worth of items?

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.