Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Companion for the polkadot-v0.9.43 branch #1120

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,20 @@ where
_ => used_gas.into(),
};
let actual_fee = effective_gas.saturating_mul(total_fee_per_gas);
let actual_base_fee = effective_gas.saturating_mul(base_fee);

log::debug!(
target: "evm",
"Execution {:?} [source: {:?}, value: {}, gas_limit: {}, actual_fee: {}, is_transactional: {}]",
"Execution {:?} [source: {:?}, value: {}, gas_limit: {}, actual_fee: {}, used_gas: {}, effective_gas: {}, base_fee: {}, total_fee_per_gas: {}, is_transactional: {}]",
reason,
source,
value,
gas_limit,
actual_fee,
used_gas,
effective_gas,
base_fee,
total_fee_per_gas,
is_transactional
);
// The difference between initially withdrawn and the actual cost is refunded.
Expand Down Expand Up @@ -298,7 +303,7 @@ where
// Actual fee after evm execution, including tip.
actual_fee,
// Base fee.
executor.fee(base_fee),
actual_base_fee,
// Fee initially withdrawn.
fee,
);
Expand Down