-
Notifications
You must be signed in to change notification settings - Fork 788
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
Default Config for Staking #1599
Conversation
The CI pipeline was cancelled due to failure one of the required jobs. |
impl frame_system::Config for Test { | ||
type BaseCallFilter = frame_support::traits::Everything; | ||
type BlockWeights = (); | ||
type BlockLength = (); | ||
type DbWeight = (); | ||
type RuntimeOrigin = RuntimeOrigin; |
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.
RuntimeOrigin
, RuntimeCall
and RuntimeEvent
can also be removed now.
pub trait Config: frame_system::Config { | ||
/// The staking balance. | ||
#[pallet::no_default] |
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 can try using no_default_bounds
for a number of them.
@@ -82,9 +82,36 @@ pub mod pallet { | |||
Remove, | |||
} | |||
|
|||
#[pallet::config] | |||
/// Some default provided implementations of [`DefaultConfig`], which can be used to implement |
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.
This can be then applies in a couple of pallets, like grandpa
etc?
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.
Thanks!
Please update #171 once done.
No description provided.