mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
make all extrinsics public so they are available from outside (#9078)
Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -144,7 +144,7 @@ pub mod pallet {
|
||||
let dispatch_info = call.get_dispatch_info();
|
||||
(dispatch_info.weight.saturating_add(10_000), dispatch_info.class)
|
||||
})]
|
||||
pub(crate) fn sudo(
|
||||
pub fn sudo(
|
||||
origin: OriginFor<T>,
|
||||
call: Box<<T as Config>::Call>,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
@@ -169,7 +169,7 @@ pub mod pallet {
|
||||
/// - The weight of this call is defined by the caller.
|
||||
/// # </weight>
|
||||
#[pallet::weight((*_weight, call.get_dispatch_info().class))]
|
||||
pub(crate) fn sudo_unchecked_weight(
|
||||
pub fn sudo_unchecked_weight(
|
||||
origin: OriginFor<T>,
|
||||
call: Box<<T as Config>::Call>,
|
||||
_weight: Weight,
|
||||
@@ -194,7 +194,7 @@ pub mod pallet {
|
||||
/// - One DB change.
|
||||
/// # </weight>
|
||||
#[pallet::weight(0)]
|
||||
pub(crate) fn set_key(
|
||||
pub fn set_key(
|
||||
origin: OriginFor<T>,
|
||||
new: <T::Lookup as StaticLookup>::Source,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
@@ -230,7 +230,7 @@ pub mod pallet {
|
||||
dispatch_info.class,
|
||||
)
|
||||
})]
|
||||
pub(crate) fn sudo_as(
|
||||
pub fn sudo_as(
|
||||
origin: OriginFor<T>,
|
||||
who: <T::Lookup as StaticLookup>::Source,
|
||||
call: Box<<T as Config>::Call>
|
||||
|
||||
Reference in New Issue
Block a user