rmrk-ink icon indicating copy to clipboard operation
rmrk-ink copied to clipboard

Limit ever-growing Vectors

Open Maar-io opened this issue 2 years ago • 1 comments

Use limits and check these limits in the related functions for all ever-growing structures. Mappings are not considered. Some of the data structures using ever-growing Vectors are:

Base::part_ids
Base::equippable_address
Part::equippable
NestingData::pending_children
NestingData::accepted_children

Acceptance criteria

  • [ ] explore expected real life limits and make comments in the code
  • [ ] unit test updated
  • [ ] integration test updated

Maar-io avatar Mar 21 '23 09:03 Maar-io

https://github.com/paritytech/ink/issues/1682

Maar-io avatar Apr 26 '23 08:04 Maar-io