Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Co #13699: Remove old calls #2431

Merged
merged 6 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore more warnings...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Apr 4, 2023
commit 2bda7052c590ccf903ddb5e0de2d42582f9bd44f
2 changes: 1 addition & 1 deletion pallets/solo-to-para/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub mod pallet {
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::call_index(0)]
#[pallet::weight(0)]
#[pallet::weight({0})]
pub fn schedule_migration(
origin: OriginFor<T>,
code: Vec<u8>,
Expand Down
8 changes: 4 additions & 4 deletions parachains/pallets/ping/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub mod pallet {
}

#[pallet::call_index(2)]
#[pallet::weight(0)]
#[pallet::weight({0})]
pub fn stop(origin: OriginFor<T>, para: ParaId) -> DispatchResult {
ensure_root(origin)?;
Targets::<T>::mutate(|t| {
Expand All @@ -185,7 +185,7 @@ pub mod pallet {
}

#[pallet::call_index(3)]
#[pallet::weight(0)]
#[pallet::weight({0})]
pub fn stop_all(origin: OriginFor<T>, maybe_para: Option<ParaId>) -> DispatchResult {
ensure_root(origin)?;
if let Some(para) = maybe_para {
Expand All @@ -197,7 +197,7 @@ pub mod pallet {
}

#[pallet::call_index(4)]
#[pallet::weight(0)]
#[pallet::weight({0})]
pub fn ping(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
// Only accept pings from other chains.
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
Expand All @@ -224,7 +224,7 @@ pub mod pallet {
}

#[pallet::call_index(5)]
#[pallet::weight(0)]
#[pallet::weight({0})]
pub fn pong(origin: OriginFor<T>, seq: u32, payload: Vec<u8>) -> DispatchResult {
// Only accept pings from other chains.
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin))?;
Expand Down