mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
BREAKING: Rename Origin (#12258)
* BREAKING: Rename Origin * more renaming * a bit more renaming * fix * more fixing * fix in frame_support * even more fixes * fix * small fix * ... * update .stderr * docs * update docs * update docs * docs
This commit is contained in:
@@ -552,8 +552,10 @@ pub mod pallet2 {
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet3 {
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config<Origin = <Self as Config>::Origin> {
|
||||
type Origin;
|
||||
pub trait Config:
|
||||
frame_system::Config<RuntimeOrigin = <Self as Config>::RuntimeOrigin>
|
||||
{
|
||||
type RuntimeOrigin;
|
||||
}
|
||||
|
||||
#[pallet::pallet]
|
||||
@@ -578,7 +580,7 @@ frame_support::parameter_types!(
|
||||
|
||||
impl frame_system::Config for Runtime {
|
||||
type BaseCallFilter = frame_support::traits::Everything;
|
||||
type Origin = Origin;
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type Index = u64;
|
||||
type BlockNumber = u32;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
@@ -618,7 +620,7 @@ impl pallet4::Config for Runtime {}
|
||||
|
||||
#[cfg(feature = "frame-feature-testing")]
|
||||
impl pallet3::Config for Runtime {
|
||||
type Origin = Origin;
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
}
|
||||
|
||||
pub type Header = sp_runtime::generic::Header<u32, sp_runtime::traits::BlakeTwo256>;
|
||||
|
||||
Reference in New Issue
Block a user