fix: Resolve cargo clippy errors and add CI workflow plan

## Changes

### Clippy Fixes
- Fixed deprecated `cargo_bin` usage in 27 test files (added #![allow(deprecated)])
- Fixed uninlined_format_args in zombienet-sdk-tests
- Fixed subxt API changes in revive/rpc/tests.rs (fetch signature, StorageValue)
- Fixed dead_code warnings in validator-pool and identity-kyc mocks
- Fixed field name `i` -> `_i` in tasks example

### CI Infrastructure
- Added .claude/WORKFLOW_PLAN.md for tracking CI fix progress
- Updated lychee.toml and taplo.toml configs

### Files Modified
- 27 test files with deprecated cargo_bin fix
- bizinikiwi/pezframe/revive/rpc/src/tests.rs (subxt API)
- pezkuwi/pezpallets/validator-pool/src/{mock,tests}.rs
- pezcumulus/teyrchains/pezpallets/identity-kyc/src/mock.rs
- bizinikiwi/pezframe/examples/tasks/src/tests.rs

## Status
- cargo clippy: PASSING
- Next: cargo fmt, zepter, workspace checks
This commit is contained in:
2025-12-22 16:36:14 +03:00
parent 8acf59c6aa
commit 65b7f5e640
1393 changed files with 17834 additions and 179151 deletions
+33 -33
View File
@@ -21,9 +21,9 @@ pezpallet-default-config-example = { workspace = true }
pezpallet-dev-mode = { workspace = true }
pezpallet-example-authorization-tx-extension = { workspace = true }
pezpallet-example-basic = { workspace = true }
pezpallet-example-pezframe-crate = { workspace = true }
pezpallet-example-kitchensink = { workspace = true }
pezpallet-example-offchain-worker = { workspace = true }
pezpallet-example-pezframe-crate = { workspace = true }
pezpallet-example-single-block-migrations = { workspace = true }
pezpallet-example-split = { workspace = true }
pezpallet-example-tasks = { workspace = true }
@@ -32,40 +32,40 @@ pezpallet-example-view-functions = { workspace = true }
[features]
default = ["std"]
std = [
"pezpallet-default-config-example/std",
"pezpallet-dev-mode/std",
"pezpallet-example-authorization-tx-extension/std",
"pezpallet-example-basic/std",
"pezpallet-example-pezframe-crate/std",
"pezpallet-example-kitchensink/std",
"pezpallet-example-offchain-worker/std",
"pezpallet-example-single-block-migrations/std",
"pezpallet-example-split/std",
"pezpallet-example-tasks/std",
"pezpallet-example-view-functions/std",
"pezpallet-default-config-example/std",
"pezpallet-dev-mode/std",
"pezpallet-example-authorization-tx-extension/std",
"pezpallet-example-basic/std",
"pezpallet-example-kitchensink/std",
"pezpallet-example-offchain-worker/std",
"pezpallet-example-pezframe-crate/std",
"pezpallet-example-single-block-migrations/std",
"pezpallet-example-split/std",
"pezpallet-example-tasks/std",
"pezpallet-example-view-functions/std",
]
try-runtime = [
"pezpallet-default-config-example/try-runtime",
"pezpallet-dev-mode/try-runtime",
"pezpallet-example-authorization-tx-extension/try-runtime",
"pezpallet-example-basic/try-runtime",
"pezpallet-example-kitchensink/try-runtime",
"pezpallet-example-offchain-worker/try-runtime",
"pezpallet-example-single-block-migrations/try-runtime",
"pezpallet-example-split/try-runtime",
"pezpallet-example-tasks/try-runtime",
"pezpallet-example-view-functions/try-runtime",
"pezpallet-default-config-example/try-runtime",
"pezpallet-dev-mode/try-runtime",
"pezpallet-example-authorization-tx-extension/try-runtime",
"pezpallet-example-basic/try-runtime",
"pezpallet-example-kitchensink/try-runtime",
"pezpallet-example-offchain-worker/try-runtime",
"pezpallet-example-single-block-migrations/try-runtime",
"pezpallet-example-split/try-runtime",
"pezpallet-example-tasks/try-runtime",
"pezpallet-example-view-functions/try-runtime",
]
runtime-benchmarks = [
"pezpallet-default-config-example/runtime-benchmarks",
"pezpallet-dev-mode/runtime-benchmarks",
"pezpallet-example-authorization-tx-extension/runtime-benchmarks",
"pezpallet-example-basic/runtime-benchmarks",
"pezpallet-example-pezframe-crate/runtime-benchmarks",
"pezpallet-example-kitchensink/runtime-benchmarks",
"pezpallet-example-offchain-worker/runtime-benchmarks",
"pezpallet-example-single-block-migrations/runtime-benchmarks",
"pezpallet-example-split/runtime-benchmarks",
"pezpallet-example-tasks/runtime-benchmarks",
"pezpallet-example-view-functions/runtime-benchmarks",
"pezpallet-default-config-example/runtime-benchmarks",
"pezpallet-dev-mode/runtime-benchmarks",
"pezpallet-example-authorization-tx-extension/runtime-benchmarks",
"pezpallet-example-basic/runtime-benchmarks",
"pezpallet-example-kitchensink/runtime-benchmarks",
"pezpallet-example-offchain-worker/runtime-benchmarks",
"pezpallet-example-pezframe-crate/runtime-benchmarks",
"pezpallet-example-single-block-migrations/runtime-benchmarks",
"pezpallet-example-split/runtime-benchmarks",
"pezpallet-example-tasks/runtime-benchmarks",
"pezpallet-example-view-functions/runtime-benchmarks",
]
@@ -37,29 +37,29 @@ pezsp-keyring = { workspace = true, default-features = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-verify-signature/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-verify-signature/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-verify-signature/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-verify-signature/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-keyring/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-verify-signature/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-verify-signature/try-runtime",
"pezsp-runtime/try-runtime",
]
+22 -22
View File
@@ -19,14 +19,14 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
log = { workspace = true }
pezframe-benchmarking = { optional = true, workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
log = { workspace = true }
pezpallet-balances = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
pezsp-io = { workspace = true }
pezsp-runtime = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
[dev-dependencies]
pezsp-core = { workspace = true }
@@ -34,28 +34,28 @@ pezsp-core = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-balances/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
]
@@ -19,9 +19,9 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
log = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
pezsp-io = { workspace = true }
@@ -30,22 +30,22 @@ pezsp-runtime = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"scale-info/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -19,13 +19,13 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
log = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
log = { workspace = true }
pezpallet-balances = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
pezsp-io = { workspace = true }
pezsp-runtime = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
[dev-dependencies]
pezsp-core = { workspace = true }
@@ -33,26 +33,26 @@ pezsp-core = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-balances/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -37,28 +37,28 @@ pezsp-core = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-balances/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
]
@@ -15,35 +15,35 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
log = { workspace = true }
pezframe-benchmarking = { optional = true, workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
log = { workspace = true }
pezpallet-migrations = { workspace = true }
scale-info = { workspace = true }
pezsp-io = { workspace = true }
scale-info = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-migrations/std",
"scale-info/std",
"pezsp-io/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-migrations/std",
"pezsp-io/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-migrations/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-migrations/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-migrations/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-migrations/try-runtime",
]
@@ -19,38 +19,38 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
lite-json = { workspace = true }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
pezsp-core = { workspace = true }
pezsp-io = { workspace = true }
pezsp-keystore = { optional = true, workspace = true }
pezsp-runtime = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-support/std",
"pezframe-system/std",
"lite-json/std",
"log/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-keystore/std",
"pezsp-runtime/std",
"codec/std",
"lite-json/std",
"log/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-keystore/std",
"pezsp-runtime/std",
"scale-info/std",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
@@ -2,8 +2,8 @@
name = "pezpallet-example-pezframe-crate"
version = "0.0.1"
authors = [
"Kurdistan Tech Institute <info@pezkuwichain.io>",
"Parity Technologies <admin@parity.io>",
"Kurdistan Tech Institute <info@pezkuwichain.io>",
"Parity Technologies <admin@parity.io>",
]
edition.workspace = true
license = "MIT-0"
@@ -16,41 +16,41 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { features = ["derive"], workspace = true }
docify = { workspace = true }
log = { workspace = true }
pezframe-support = { workspace = true }
pezframe-system = { workspace = true }
log = { workspace = true }
pezpallet-balances = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
pezsp-core = { workspace = true }
pezsp-io = { workspace = true }
pezsp-runtime = { workspace = true }
pezsp-version = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"pezpallet-balances/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"pezsp-version/std",
"codec/std",
"log/std",
"pezframe-support/std",
"pezframe-system/std",
"pezpallet-balances/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"pezsp-version/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezpallet-balances/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezsp-version/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezpallet-balances/try-runtime",
"pezsp-runtime/try-runtime",
]
+12 -12
View File
@@ -35,19 +35,19 @@ pezsp-core = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-core/std",
"pezsp-io/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
]
try-runtime = ["pezframe-support/try-runtime", "pezframe-system/try-runtime"]
+17 -17
View File
@@ -33,26 +33,26 @@ pezframe-benchmarking = { optional = true, workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"codec/std",
"log/std",
"pezframe-benchmarking?/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-runtime/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-benchmarking/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
]
experimental = ["pezframe-support/experimental", "pezframe-system/experimental"]
@@ -56,7 +56,8 @@ pub mod pezpallet {
#[pezpallet::task_condition(|i| Numbers::<T>::contains_key(i))]
#[pezpallet::task_weight(T::WeightInfo::add_number_into_total())]
#[pezpallet::task_index(0)]
pub fn add_number_into_total(i: u32) -> DispatchResult {
pub fn add_number_into_total(_i: u32) -> DispatchResult {
let i = _i;
let v = Numbers::<T>::take(i).ok_or(Error::<T>::NotFound)?;
Total::<T>::mutate(|(total_keys, total_values)| {
*total_keys += i;
@@ -72,7 +73,7 @@ pub mod pezpallet {
fn offchain_worker(_block_number: BlockNumberFor<T>) {
if let Some(key) = Numbers::<T>::iter_keys().next() {
// Create a valid task
let task = Task::<T>::AddNumberIntoTotal { i: key };
let task = Task::<T>::AddNumberIntoTotal { _i: key };
let runtime_task = <T as Config>::RuntimeTask::from(task);
let call = pezframe_system::Call::<T>::do_task { task: runtime_task.into() };
@@ -80,7 +80,7 @@ fn runtime_task_enumerate_works_via_pallet_config() {
fn task_index_works_at_pallet_level() {
new_test_ext().execute_with(|| {
assert_eq!(
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { i: 2u32 }.task_index(),
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { _i: 2u32 }.task_index(),
0
);
});
@@ -91,7 +91,7 @@ fn task_index_works_at_runtime_level() {
new_test_ext().execute_with(|| {
assert_eq!(
<Runtime as pezframe_system::Config>::RuntimeTask::TasksExample(
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { i: 1u32 }
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { _i: 1u32 }
)
.task_index(),
0
@@ -108,7 +108,7 @@ fn task_execution_works() {
Numbers::<Runtime>::insert(1, 4);
let task = <Runtime as pezframe_system::Config>::RuntimeTask::TasksExample(
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { i: 1u32 },
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { _i: 1u32 },
);
assert_ok!(System::do_task(RuntimeOrigin::signed(1), task.clone(),));
assert_eq!(Numbers::<Runtime>::get(0), Some(1));
@@ -127,7 +127,7 @@ fn task_execution_fails_for_invalid_task() {
System::do_task(
RuntimeOrigin::signed(1),
<Runtime as pezframe_system::Config>::RuntimeTask::TasksExample(
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { i: 0u32 }
crate::pezpallet::Task::<Runtime>::AddNumberIntoTotal { _i: 0u32 }
),
),
pezframe_system::Error::<Runtime>::InvalidTask
@@ -21,7 +21,7 @@ codec = { default-features = false, workspace = true }
frame-metadata = { features = ["current"], workspace = true }
log = { workspace = true }
scale-info = { default-features = false, features = [
"derive",
"derive",
], workspace = true }
pezframe-support = { default-features = false, workspace = true }
@@ -38,25 +38,25 @@ pretty_assertions = { workspace = true }
[features]
default = ["std"]
std = [
"codec/std",
"frame-metadata/std",
"pezframe-support/std",
"pezframe-system/std",
"log/std",
"scale-info/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-metadata-ir/std",
"pezsp-runtime/std",
"codec/std",
"frame-metadata/std",
"log/std",
"pezframe-support/std",
"pezframe-system/std",
"pezsp-core/std",
"pezsp-io/std",
"pezsp-metadata-ir/std",
"pezsp-runtime/std",
"scale-info/std",
]
runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
]
try-runtime = [
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
"pezframe-support/try-runtime",
"pezframe-system/try-runtime",
"pezsp-runtime/try-runtime",
]