diff --git a/frame/evm/src/runner/stack.rs b/frame/evm/src/runner/stack.rs index 6bac4ef749..c4363dd1d2 100644 --- a/frame/evm/src/runner/stack.rs +++ b/frame/evm/src/runner/stack.rs @@ -1156,7 +1156,7 @@ where } fn refund_external_cost(&mut self, ref_time: Option, proof_size: Option) { - if let Some(mut weight_info) = self.weight_info { + if let Some(weight_info) = self.weight_info.as_mut() { if let Some(amount) = ref_time { weight_info.refund_ref_time(amount); }