-
Notifications
You must be signed in to change notification settings - Fork 798
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-statement and pallet-sudo to use umbrella crate #7106
base: master
Are you sure you want to change the base?
Migrate pallet-statement and pallet-sudo to use umbrella crate #7106
Conversation
User @Nathy-bajo, please sign the CLA here. |
Please review @re-gius @kianenigma |
@@ -0,0 +1,21 @@ | |||
thread 'coordinator' panicked at /rustc/f7273e0044ad8f35ad27282e4ab776af50b61a54/compiler/rustc_codegen_ssa/src/back/write.rs:1662:29: |
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.
wtf :D
use sp_core::Pair; | ||
use sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}; | ||
use frame::testing_prelude::*; | ||
use frame::deps::{sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}, sp_core::Pair}; |
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.
Most of this stuff should already be testing prelude.
use sp_core::Pair; | ||
use sp_runtime::AccountId32; | ||
use sp_statement_store::{ | ||
use frame::deps::{sp_runtime::AccountId32, sp_core::{Pair, H256}, sp_statement_store::{ |
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.
same.
substrate/frame/src/lib.rs
Outdated
@@ -569,7 +569,8 @@ pub mod deps { | |||
pub use sp_core; | |||
pub use sp_io; | |||
pub use sp_runtime; | |||
|
|||
pub use sp_statement_store; |
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.
All of the primitives of the statemnt store are really just used in one pallet, I would not add them here and keep them as a dependency.
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.
Yeah
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.
not ready yet :)
Please review @bkchr @kianenigma @re-gius |
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.
Yeah statement-store primitives you not be added to the frame
crate
substrate/frame/src/lib.rs
Outdated
@@ -569,7 +569,8 @@ pub mod deps { | |||
pub use sp_core; | |||
pub use sp_io; | |||
pub use sp_runtime; | |||
|
|||
pub use sp_statement_store; |
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.
Yeah
I thought I already removed it. Thank you for the reference! |
Head branch was pushed to by a user without write access
Review required! Latest push from author must always be reviewed |
InvalidTransaction, TransactionPriority, TransactionValidityError, UnknownTransaction, | ||
ValidTransaction, | ||
}, | ||
DispatchResult, | ||
}; | ||
/// Other error/result types for runtime | ||
#[doc(no_inline)] |
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.
Can you please move the import from below to the other import above.
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.
It was the wrong import
Part of #6504
Polkadot Address: 121HJWZtD13GJQPD82oEj3gSeHqsRYm1mFgRALu4L96kfPD1