Runtime storage best practices - Verify First Write Last Requires Additional Info Since Polkadot-v0.9.25 #1215
Closed
2 tasks done
Labels
new content 💡✍️
New Devhub content required.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Content request
Section: https://docs.substrate.io/main-docs/build/runtime-storage/ (Verify First, Update Last)
In substrate polkadot-v0.9.25 branch (https://github.com/paritytech/substrate/tree/polkadot-v0.9.25) #[transactional] macro got deprecated since it is now default behavior (paritytech/substrate#11546 & paritytech/substrate#11431). So now, even if verification happens after storage update, the state won't persist. It will get reverted on Err. Hence, it makes sense to update that section according to new updates. It is still best practice to follow, but it needs updated information.
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: