Skip to content

Commit

Permalink
fix refund external cost (polkadot-evm#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Apr 9, 2024
1 parent 101e61f commit 5d6bf0c
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 @@ -1231,7 +1231,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 5d6bf0c

Please sign in to comment.