subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

freeze_struct improvements / custom linting framework

Open sam0x17 opened this issue 1 year ago • 1 comments

#513 introduced the #[freeze_struct] attribute which allows you to "lock" a storage struct such that any changes to it result in a new hash code that is enforced at compile time.

A few additional features would enhance this:

  • [ ] ignore changes to generic name in hash code calculation (verify that this is actually harmless)
  • [ ] ignore changes to field names in hash code calculation (verify that this is actually harmless)
  • [x] custom linting framework
  • [x] an automatic lint requiring this on storage structs

sam0x17 avatar Jul 02 '24 14:07 sam0x17