Disarm `OnRuntimeUpgrade::pre/post_upgrade` `Tuple` footgun (#14759)
* return error on incorrect tuple usage of pre_upgrade and post_upgrade * add test * comment lint * Update frame/support/src/traits/hooks.rs Co-authored-by: Keith Yeung <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Keith Yeung <[email protected]> * address feedback * Update frame/support/src/traits/hooks.rs Co-authored-by: Keith Yeung <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Keith Yeung <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Keith Yeung <[email protected]> * muharem comments * Update frame/support/src/traits/hooks.rs Co-authored-by: Muharem Ismailov <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Muharem Ismailov <[email protected]> * remove useless type --------- Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Muharem Ismailov <[email protected]>
parent
ffbc395d
Please register or sign in to comment