Skip to content
Commit 13f05272 authored by Liam Aharon's avatar Liam Aharon Committed by GitHub
Browse files

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: default avatarKeith Yeung <[email protected]>

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarKeith Yeung <[email protected]>

* address feedback

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarKeith Yeung <[email protected]>

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarKeith Yeung <[email protected]>

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarKeith Yeung <[email protected]>

* muharem comments

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarMuharem Ismailov <[email protected]>

* Update frame/support/src/traits/hooks.rs

Co-authored-by: default avatarMuharem Ismailov <[email protected]>

* remove useless type

---------

Co-authored-by: default avatarKeith Yeung <[email protected]>
Co-authored-by: default avatarMuharem Ismailov <[email protected]>
parent ffbc395d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment