KaiserKarel / substrace

Static analysis for Substrate based projects
27 stars 1 forks source link

Lint for modifications in `mutate` closure #27

Open ggwpez opened 1 year ago

ggwpez commented 1 year ago

A value should not be modified again while in a mutate, try_mutate or try_mutate_exists closure, since any changes are overwritten at the end of the closure.
Debugging this can be difficult, so maybe a lint makes sense :smile: