From 230f91a6d78bd2a476ffcd0a9b18879c478b9c0f Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk Date: Thu, 4 Apr 2024 13:42:38 +0300 Subject: [PATCH] fix refund external cost --- frame/evm/src/runner/stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }