Skip to content

Commit de528be

Browse files
committed
fix remove stake weight
1 parent 3b47092 commit de528be

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

chain-extensions/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ where
104104
.map_err(|_| DispatchError::Other("Failed to decode input parameters"))?;
105105

106106
// weight for remove_stake is not defined in the Subtensor pallet's WeightInfo
107-
let weight = Weight::from_parts(196_800_000, 0)
108-
.saturating_add(T::DbWeight::get().reads(19))
109-
.saturating_add(T::DbWeight::get().writes(10));
107+
let weight = <<T as pallet_subtensor::Config>::WeightInfo as SubtensorWeightInfo>::remove_stake();
110108

111109
env.charge_weight(weight)?;
112110

0 commit comments

Comments
 (0)