Example:
Almost every type implementing StorageType
(e.g. StorageAddress
, StorageU256
etc.) has the same get
and set
functions. It would make sense to have a common trait defining these operations.
This would allow implementing generic logic on storage or even default trait function implementations to get/set state.