From 197f5cfdb8d0783aa4ecfc5038faa05c68578ef3 Mon Sep 17 00:00:00 2001 From: Michael Silberling <4006780+MSilb7@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:57:00 -0400 Subject: [PATCH] Add handling for "noncalldata_gas" to the L1 data fee calculation Re-Add `noncalldata_gas` given feedback from teams trying to estimate. Open to how this should best be calculated, since the current formula will understate the actual l1_gas_used field. --- src/docs/developers/build/transaction-fees.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/developers/build/transaction-fees.md b/src/docs/developers/build/transaction-fees.md index 14491cf70..1c9019205 100644 --- a/src/docs/developers/build/transaction-fees.md +++ b/src/docs/developers/build/transaction-fees.md @@ -83,7 +83,7 @@ This fee is based on four factors: Here's the math: ``` -l1_data_fee = l1_gas_price * (tx_data_gas + fixed_overhead) * dynamic_overhead +l1_data_fee = l1_gas_price * (tx_data_gas + fixed_overhead + noncalldata_gas) * dynamic_overhead ``` Where `tx_data_gas` is: