mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 13:15:02 +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:
1 parent
ad5b8afa6e
commit
5dec6e5c81
21 files changed
+155
-155
No files matched your search
@@ -138,7 +138,7 @@ pub mod pallet {
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::weight(50_000_000)]
|
||||
pub(super) fn set_name(origin: OriginFor<T>, name: Vec<u8>) -> DispatchResult {
|
||||
pub fn set_name(origin: OriginFor<T>, name: Vec<u8>) -> DispatchResult {
|
||||
let sender = ensure_signed(origin)?;
|
||||
|
||||
ensure!(name.len() >= T::MinLength::get() as usize, Error::<T>::TooShort);
|
||||
@@ -169,7 +169,7 @@ pub mod pallet {
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub(super) fn clear_name(origin: OriginFor<T>) -> DispatchResult {
|
||||
pub fn clear_name(origin: OriginFor<T>) -> DispatchResult {
|
||||
let sender = ensure_signed(origin)?;
|
||||
|
||||
let deposit = <NameOf<T>>::take(&sender).ok_or(Error::<T>::Unnamed)?.1;
|
||||
@@ -195,7 +195,7 @@ pub mod pallet {
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub(super) fn kill_name(
|
||||
pub fn kill_name(
|
||||
origin: OriginFor<T>,
|
||||
target: <T::Lookup as StaticLookup>::Source
|
||||
) -> DispatchResult {
|
||||
@@ -225,7 +225,7 @@ pub mod pallet {
|
||||
/// - One event.
|
||||
/// # </weight>
|
||||
#[pallet::weight(70_000_000)]
|
||||
pub(super) fn force_name(
|
||||
pub fn force_name(
|
||||
origin: OriginFor<T>,
|
||||
target: <T::Lookup as StaticLookup>::Source,
|
||||
name: Vec<u8>
|
||||
|
||||
Reference in new issue
Block a user