Skip to content

Commit 3f189f9

Browse files
chore: default values for minPrice and maxPrice for tftprice pallet #434
1 parent 19491b2 commit 3f189f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

substrate-node/runtime/src/migrations.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ impl frame_support::traits::OnRuntimeUpgrade for PalletTftPriceStoragePrefixMigr
119119
// Reinsert some default values
120120
pallet_tft_price::TftPrice::<Runtime>::put(45);
121121
pallet_tft_price::AverageTftPrice::<Runtime>::put(45);
122+
pallet_tft_price::MinTftPrice::<Runtime>::put(20);
123+
pallet_tft_price::MaxTftPrice::<Runtime>::put(2000);
122124

123-
<Runtime as frame_system::Config>::DbWeight::get().writes(2)
125+
<Runtime as frame_system::Config>::DbWeight::get().writes(8)
124126
}
125127
}
126128

0 commit comments

Comments
 (0)