Consider implementing a checked_mutate
for all the mutations in the staking ledger related storage items
#3697
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
I10-unconfirmed
Issue might be valid, but it's not yet known.
To prevent issues like what happened in #3245, consider implementing a
checked_mutate
for all the mutations in the staking ledger related storage items.The
check_mutate
should fail in case the state of the storage is incorrect after the mutation. Transactional should take care of the rest.The text was updated successfully, but these errors were encountered: