Skip to content

Commit 6af0248

Browse files
fix: migration v12
1 parent 98285b9 commit 6af0248

File tree

1 file changed

+2
-2
lines changed
  • substrate-node/pallets/pallet-tfgrid/src/migrations

1 file changed

+2
-2
lines changed

substrate-node/pallets/pallet-tfgrid/src/migrations/v12.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl<T: Config> OnRuntimeUpgrade for InputValidation<T> {
6767

6868
// Store number of nodes in temp storage
6969
let nodes_count: u64 = Nodes::<T>::iter_keys().count().saturated_into();
70-
Self::set_temp_storage(nodes_count, "nodes_count");
70+
Self::set_temp_storage(nodes_count, "pre_nodes_count");
7171
log::info!(
7272
"🔎 FixFarmingPolicy pre migration: Number of existing nodes {:?}",
7373
nodes_count
@@ -191,7 +191,7 @@ fn migrate_nodes<T: Config>() -> frame_support::weights::Weight {
191191
};
192192

193193
let new_node = TfgridNode::<T> {
194-
version: 6, // deprecated
194+
version: 5, // deprecated
195195
id: node.id,
196196
farm_id: node.farm_id,
197197
twin_id: node.twin_id,

0 commit comments

Comments
 (0)