From 1c4729af37abaa4716b4bb4ee4a89b8ee66bd48c Mon Sep 17 00:00:00 2001 From: open-junius Date: Mon, 10 Nov 2025 23:10:07 +0800 Subject: [PATCH 1/5] commit Cargo.lock --- pallets/subtensor/src/tests/coinbase.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pallets/subtensor/src/tests/coinbase.rs b/pallets/subtensor/src/tests/coinbase.rs index 56f7d2171..a54dedf4c 100644 --- a/pallets/subtensor/src/tests/coinbase.rs +++ b/pallets/subtensor/src/tests/coinbase.rs @@ -3080,6 +3080,7 @@ fn test_mining_emission_distribution_with_subsidy() { let miner_incentive: AlphaCurrency = (*Incentive::::get(NetUidStorageIndex::from(netuid)) .get(miner_uid as usize) + .ok_or("Miner uid should be present") .expect("Miner uid should be present") as u64) .into(); log::info!("Miner incentive: {miner_incentive:?}"); @@ -3248,6 +3249,7 @@ fn test_mining_emission_distribution_with_no_subsidy() { let miner_incentive: AlphaCurrency = (*Incentive::::get(NetUidStorageIndex::from(netuid)) .get(miner_uid as usize) + .ok_or("Miner uid should be present") .expect("Miner uid should be present") as u64) .into(); log::info!("Miner incentive: {miner_incentive:?}"); From 41f4d1542ec2e0115f0c2b2ab05313b18445858d Mon Sep 17 00:00:00 2001 From: open-junius Date: Mon, 10 Nov 2025 23:12:51 +0800 Subject: [PATCH 2/5] commit Cargo.lock --- pallets/subtensor/src/tests/coinbase.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/pallets/subtensor/src/tests/coinbase.rs b/pallets/subtensor/src/tests/coinbase.rs index a54dedf4c..56f7d2171 100644 --- a/pallets/subtensor/src/tests/coinbase.rs +++ b/pallets/subtensor/src/tests/coinbase.rs @@ -3080,7 +3080,6 @@ fn test_mining_emission_distribution_with_subsidy() { let miner_incentive: AlphaCurrency = (*Incentive::::get(NetUidStorageIndex::from(netuid)) .get(miner_uid as usize) - .ok_or("Miner uid should be present") .expect("Miner uid should be present") as u64) .into(); log::info!("Miner incentive: {miner_incentive:?}"); @@ -3249,7 +3248,6 @@ fn test_mining_emission_distribution_with_no_subsidy() { let miner_incentive: AlphaCurrency = (*Incentive::::get(NetUidStorageIndex::from(netuid)) .get(miner_uid as usize) - .ok_or("Miner uid should be present") .expect("Miner uid should be present") as u64) .into(); log::info!("Miner incentive: {miner_incentive:?}"); From 448c5f128763f59034c4ac9defae907cee0c8cb2 Mon Sep 17 00:00:00 2001 From: open-junius Date: Mon, 10 Nov 2025 23:15:25 +0800 Subject: [PATCH 3/5] fix CI --- pallets/subtensor/src/tests/coinbase.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pallets/subtensor/src/tests/coinbase.rs b/pallets/subtensor/src/tests/coinbase.rs index 56f7d2171..efa0e4c95 100644 --- a/pallets/subtensor/src/tests/coinbase.rs +++ b/pallets/subtensor/src/tests/coinbase.rs @@ -1,4 +1,10 @@ -#![allow(unused, clippy::indexing_slicing, clippy::panic, clippy::unwrap_used)] +#![allow( + unused, + clippy::indexing_slicing, + clippy::panic, + clippy::unwrap_used, + clippy::expect_used +)] use super::mock::*; use crate::tests::mock; From 830ca3736404c35f877329426e9ddf63d27e5873 Mon Sep 17 00:00:00 2001 From: open-junius Date: Mon, 10 Nov 2025 23:15:58 +0800 Subject: [PATCH 4/5] bump version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 42f35cbc8..fe9bda8b6 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 341, + spec_version: 342, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From d740a8e6272838966d77c95d082dff6f54db2ecd Mon Sep 17 00:00:00 2001 From: open-junius Date: Wed, 12 Nov 2025 17:55:08 +0800 Subject: [PATCH 5/5] bump version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 5e17dc6f7..f6843c50e 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 345, + spec_version: 346, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,