mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08: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:
@@ -113,7 +113,7 @@ pub mod pallet {
|
||||
|
||||
/// The overarching call type.
|
||||
type RuntimeCall: Parameter
|
||||
+ Dispatchable<Origin = Self::Origin>
|
||||
+ Dispatchable<RuntimeOrigin = Self::RuntimeOrigin>
|
||||
+ GetDispatchInfo
|
||||
+ From<frame_system::Call<Self>>
|
||||
+ IsSubType<Call<Self>>
|
||||
@@ -819,7 +819,7 @@ impl<T: Config> Pallet<T> {
|
||||
call: <T as Config>::RuntimeCall,
|
||||
) {
|
||||
// This is a freshly authenticated new account, the origin restrictions doesn't apply.
|
||||
let mut origin: T::Origin = frame_system::RawOrigin::Signed(real).into();
|
||||
let mut origin: T::RuntimeOrigin = frame_system::RawOrigin::Signed(real).into();
|
||||
origin.add_filter(move |c: &<T as frame_system::Config>::RuntimeCall| {
|
||||
let c = <T as Config>::RuntimeCall::from_ref(c);
|
||||
// We make sure the proxy call does access this pallet to change modify proxies.
|
||||
|
||||
Reference in New Issue
Block a user