-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate pallet-alliance
to umbrella crate
#6541
base: master
Are you sure you want to change the base?
Conversation
This also should be ready for review @re-gius 🙏 |
please review @kianenigma @re-gius |
use super::{Call as AllianceCall, Pallet as Alliance, *}; | ||
use core::{cmp, mem::size_of}; | ||
use frame::{benchmarking::prelude::*, traits::UnfilteredDispatchable}; | ||
use frame_system::Pallet as System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in my previous observation, please check if assert_last_event
is widely used and should be added to the benchmarking prelude.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could leave things as
use frame::benchmarking::prelude::{*, RawOrigin as SystemOrigin, frame_system::Pallet as System};
until we migrate most pallets? @re-gius @kianenigma
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert_last_event
are sometimes instantiable, creating one function for both occurrences?
please could you explain a bit more
Part of #6504
Description
Modifying pallet-alliance to use umbrella crate whilst
BoundedVec
toframe::runtime::prelude
, which I think should be necessary for mock runtimes in more than one pallet.testing_prelude
. This exports all relevant types used in event checking among various mock runtimes.