We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b47092 commit de528beCopy full SHA for de528be
1 file changed
chain-extensions/src/lib.rs
@@ -104,9 +104,7 @@ where
104
.map_err(|_| DispatchError::Other("Failed to decode input parameters"))?;
105
106
// 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));
+ let weight = <<T as pallet_subtensor::Config>::WeightInfo as SubtensorWeightInfo>::remove_stake();
110
111
env.charge_weight(weight)?;
112
0 commit comments