Skip to content

Commit

Permalink
fix refund external cost
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Apr 4, 2024
1 parent 3fdaa3e commit 230f91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ where
}

fn refund_external_cost(&mut self, ref_time: Option<u64>, proof_size: Option<u64>) {
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);
}
Expand Down

0 comments on commit 230f91a

Please sign in to comment.