mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Enforce pub calls in pallets (#9085)
* make all extrinsics public so they are available from outside * Impl * fix * more fix * more pub * few more * merge fix * fix ui test * fix ui test Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
committed by
GitHub
parent
f21243e4e5
commit
d31e607bda
@@ -1438,7 +1438,7 @@ pub mod pallet_prelude {
|
||||
/// impl<T: Config> Pallet<T> {
|
||||
/// /// $some_doc
|
||||
/// #[pallet::weight($ExpressionResultingInWeight)]
|
||||
/// $vis fn $fn_name(
|
||||
/// pub fn $fn_name(
|
||||
/// origin: OriginFor<T>,
|
||||
/// $some_arg: $some_type,
|
||||
/// // or with compact attribute: #[pallet::compact] $some_arg: $some_type,
|
||||
@@ -1897,7 +1897,7 @@ pub mod pallet_prelude {
|
||||
/// impl<T: Config> Pallet<T> {
|
||||
/// /// Doc comment put in metadata
|
||||
/// #[pallet::weight(0)] // Defines weight for call (function parameters are in scope)
|
||||
/// fn toto(
|
||||
/// pub fn toto(
|
||||
/// origin: OriginFor<T>,
|
||||
/// #[pallet::compact] _foo: u32,
|
||||
/// ) -> DispatchResultWithPostInfo {
|
||||
|
||||
Reference in New Issue
Block a user