From 82ae3afb16c7ede1dbf02e66308c72e83277e45c Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 16 Dec 2024 23:32:15 -0300 Subject: [PATCH] Correct cumulative_gas_used calculation --- frame/ethereum/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/ethereum/src/lib.rs b/frame/ethereum/src/lib.rs index a211f2478e..7317932b7c 100644 --- a/frame/ethereum/src/lib.rs +++ b/frame/ethereum/src/lib.rs @@ -450,7 +450,7 @@ impl Pallet { (d.logs.clone(), d.used_gas) } }; - cumulative_gas_used = used_gas; + cumulative_gas_used = cumulative_gas_used.saturating_add(used_gas); Self::logs_bloom(logs, &mut logs_bloom); }