We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98285b9 commit 6af0248Copy full SHA for 6af0248
substrate-node/pallets/pallet-tfgrid/src/migrations/v12.rs
@@ -67,7 +67,7 @@ impl<T: Config> OnRuntimeUpgrade for InputValidation<T> {
67
68
// Store number of nodes in temp storage
69
let nodes_count: u64 = Nodes::<T>::iter_keys().count().saturated_into();
70
- Self::set_temp_storage(nodes_count, "nodes_count");
+ Self::set_temp_storage(nodes_count, "pre_nodes_count");
71
log::info!(
72
"🔎 FixFarmingPolicy pre migration: Number of existing nodes {:?}",
73
nodes_count
@@ -191,7 +191,7 @@ fn migrate_nodes<T: Config>() -> frame_support::weights::Weight {
191
};
192
193
let new_node = TfgridNode::<T> {
194
- version: 6, // deprecated
+ version: 5, // deprecated
195
id: node.id,
196
farm_id: node.farm_id,
197
twin_id: node.twin_id,
0 commit comments