-
Notifications
You must be signed in to change notification settings - Fork 804
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-referenda to use umbrella crate #7236
base: master
Are you sure you want to change the base?
Conversation
substrate/frame/referenda/src/lib.rs
Outdated
BoundedVec, | ||
}; | ||
use frame_system::pallet_prelude::BlockNumberFor; | ||
|
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.
traits::{AtLeast32BitUnsigned, Bounded, Dispatchable, One, Saturating, Zero}, | ||
DispatchError, Perbill, | ||
}; | ||
|
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.
@@ -96,9 +94,9 @@ pub mod v1 { | |||
/// Transforms a submission deposit of ReferendumInfo(Approved|Rejected|Cancelled|TimedOut) to | |||
/// optional value, making it refundable. | |||
pub struct MigrateV0ToV1<T, I = ()>(PhantomData<(T, I)>); | |||
impl<T: Config<I>, I: 'static> OnRuntimeUpgrade for MigrateV0ToV1<T, I> { | |||
impl<T: Config<I>, I: 'static> frame::traits::OnRuntimeUpgrade for MigrateV0ToV1<T, I> { |
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.
is it not in the prelude?
#[cfg(feature = "try-runtime")] | ||
fn pre_upgrade() -> Result<Vec<u8>, TryRuntimeError> { | ||
fn pre_upgrade() -> Result<Vec<u8>, frame::try_runtime::TryRuntimeError> { |
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.
is it not in the 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.
No it is not
traits::{schedule::v3::Anon, Bounded}, | ||
Parameter, | ||
}; | ||
|
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.
substrate/frame/src/lib.rs
Outdated
Dispatchable, One, ReduceBy, ReplaceWithDefault, SaturatedConversion, Saturating, | ||
StaticLookup, TrailingZeroInput, Zero, | ||
}, | ||
BuildStorage, DispatchError, DispatchResult, FixedI64, PerThing, Perbill, |
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.
DispatchResult
is already imported from frame-support and DispatchError
is imported below.
BuildStorage, DispatchError, DispatchResult, FixedI64, PerThing, Perbill, | |
BuildStorage, FixedI64, PerThing, Perbill, |
Part of #6504
Polkadot Address: 121HJWZtD13GJQPD82oEj3gSeHqsRYm1mFgRALu4L96kfPD1