Skip to content

Commit 39a8cf4

Browse files
committed
add missing reads
1 parent acdc77f commit 39a8cf4

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,7 @@ pub mod pallet {
10131013
#[pallet::call_index(33)]
10141014
#[pallet::weight((
10151015
Weight::from_parts(2_875_000, 0)
1016+
.saturating_add(T::DbWeight::get().reads(3_u64))
10161017
.saturating_add(T::DbWeight::get().writes(1_u64)),
10171018
DispatchClass::Operational,
10181019
Pays::Yes
@@ -1144,7 +1145,9 @@ pub mod pallet {
11441145
/// The extrinsic will call the Subtensor pallet to set the weights min stake.
11451146
#[pallet::call_index(42)]
11461147
#[pallet::weight((
1147-
Weight::from_parts(5_000_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)),
1148+
Weight::from_parts(5_000_000, 0)
1149+
.saturating_add(T::DbWeight::get().reads(1_u64))
1150+
.saturating_add(T::DbWeight::get().writes(1_u64)),
11481151
DispatchClass::Operational,
11491152
Pays::Yes
11501153
))]
@@ -1187,7 +1190,9 @@ pub mod pallet {
11871190
/// The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions.
11881191
#[pallet::call_index(45)]
11891192
#[pallet::weight((
1190-
Weight::from_parts(5_019_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)),
1193+
Weight::from_parts(5_019_000, 0)
1194+
.saturating_add(T::DbWeight::get().reads(4_u64))
1195+
.saturating_add(T::DbWeight::get().writes(1_u64)),
11911196
DispatchClass::Operational,
11921197
Pays::Yes
11931198
))]
@@ -1208,7 +1213,9 @@ pub mod pallet {
12081213
/// The extrinsic will call the Subtensor pallet to set the minimum delegate take.
12091214
#[pallet::call_index(46)]
12101215
#[pallet::weight((
1211-
Weight::from_parts(7_214_000, 0).saturating_add(T::DbWeight::get().writes(1_u64)),
1216+
Weight::from_parts(7_214_000, 0)
1217+
.saturating_add(T::DbWeight::get().reads(4_u64))
1218+
.saturating_add(T::DbWeight::get().writes(1_u64)),
12121219
DispatchClass::Operational,
12131220
Pays::Yes
12141221
))]
@@ -1264,6 +1271,7 @@ pub mod pallet {
12641271
#[pallet::call_index(50)]
12651272
#[pallet::weight((
12661273
Weight::from_parts(18_300_000, 0)
1274+
.saturating_add(T::DbWeight::get().reads(3_u64))
12671275
.saturating_add(T::DbWeight::get().writes(1_u64)),
12681276
DispatchClass::Normal,
12691277
Pays::Yes
@@ -1338,6 +1346,7 @@ pub mod pallet {
13381346
#[pallet::call_index(54)]
13391347
#[pallet::weight((
13401348
Weight::from_parts(5_000_000, 0)
1349+
.saturating_add(T::DbWeight::get().reads(3_u64))
13411350
.saturating_add(T::DbWeight::get().writes(1_u64)),
13421351
DispatchClass::Operational,
13431352
Pays::Yes
@@ -1375,6 +1384,7 @@ pub mod pallet {
13751384
#[pallet::call_index(55)]
13761385
#[pallet::weight((
13771386
Weight::from_parts(5_000_000, 0)
1387+
.saturating_add(T::DbWeight::get().reads(3_u64))
13781388
.saturating_add(T::DbWeight::get().writes(1_u64)),
13791389
DispatchClass::Operational,
13801390
Pays::Yes
@@ -1508,6 +1518,7 @@ pub mod pallet {
15081518
#[pallet::call_index(61)]
15091519
#[pallet::weight((
15101520
Weight::from_parts(20_460_000, 0)
1521+
.saturating_add(T::DbWeight::get().reads(2_u64))
15111522
.saturating_add(T::DbWeight::get().writes(1_u64)),
15121523
DispatchClass::Normal,
15131524
Pays::Yes
@@ -1580,7 +1591,8 @@ pub mod pallet {
15801591
#[pallet::call_index(62)]
15811592
#[pallet::weight((
15821593
Weight::from_parts(6_392_000, 3507)
1583-
.saturating_add(T::DbWeight::get().reads(1_u64)),
1594+
.saturating_add(T::DbWeight::get().reads(1_u64))
1595+
.saturating_add(T::DbWeight::get().writes(1_u64)),
15841596
DispatchClass::Operational,
15851597
Pays::Yes
15861598
))]
@@ -1614,6 +1626,7 @@ pub mod pallet {
16141626
#[pallet::call_index(63)]
16151627
#[pallet::weight((
16161628
Weight::from_parts(3_000_000, 0)
1629+
.saturating_add(T::DbWeight::get().reads(1_u64))
16171630
.saturating_add(T::DbWeight::get().writes(1_u64)),
16181631
DispatchClass::Operational,
16191632
Pays::Yes
@@ -1667,6 +1680,7 @@ pub mod pallet {
16671680
#[pallet::call_index(65)]
16681681
#[pallet::weight((
16691682
Weight::from_parts(3_918_000, 0)
1683+
.saturating_add(T::DbWeight::get().reads(1_u64))
16701684
.saturating_add(T::DbWeight::get().writes(1_u64)),
16711685
DispatchClass::Operational,
16721686
Pays::Yes
@@ -1753,6 +1767,7 @@ pub mod pallet {
17531767
#[pallet::call_index(69)]
17541768
#[pallet::weight((
17551769
Weight::from_parts(20_460_000, 0)
1770+
.saturating_add(T::DbWeight::get().reads(2_u64))
17561771
.saturating_add(T::DbWeight::get().writes(1_u64)),
17571772
DispatchClass::Normal,
17581773
Pays::Yes
@@ -1791,6 +1806,7 @@ pub mod pallet {
17911806
#[pallet::call_index(70)]
17921807
#[pallet::weight((
17931808
Weight::from_parts(22_340_000, 0)
1809+
.saturating_add(T::DbWeight::get().reads(2_u64))
17941810
.saturating_add(T::DbWeight::get().writes(1_u64)),
17951811
DispatchClass::Normal,
17961812
Pays::Yes
@@ -1878,6 +1894,7 @@ pub mod pallet {
18781894
#[pallet::call_index(66)]
18791895
#[pallet::weight((
18801896
Weight::from_parts(17_980_000, 0)
1897+
.saturating_add(T::DbWeight::get().reads(2_u64))
18811898
.saturating_add(T::DbWeight::get().writes(1_u64)),
18821899
DispatchClass::Operational,
18831900
Pays::Yes

0 commit comments

Comments
 (0)