make all extrinsics public so they are available from outside (#9078)

Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
Alexander Popiak
2021-06-12 12:43:08 +02:00
committed by GitHub
parent ad5b8afa6e
commit 5dec6e5c81
21 changed files with 155 additions and 155 deletions
+4 -4
View File
@@ -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>