From a7f60666254dca09c20a89a8141a1d33fa17d5b7 Mon Sep 17 00:00:00 2001 From: Ruzzgar Date: Sun, 13 Sep 2026 04:40:35 +0300 Subject: [PATCH] docs(precompiles): document the nextBaseFee field in the gas-values slot layout pack_gas_values_for_storage writes nextBaseFee to bytes [8..16], but the layout comment lists only gasUsedSmoothed and gasUsed. The comment predates the nextBaseFee field. Add the missing line. --- crates/precompiles/src/system_accounting.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/precompiles/src/system_accounting.rs b/crates/precompiles/src/system_accounting.rs index ef0cc99f..f31eb2df 100644 --- a/crates/precompiles/src/system_accounting.rs +++ b/crates/precompiles/src/system_accounting.rs @@ -215,6 +215,7 @@ precompile!(run_system_accounting, precompile_input, hardfork_flags; { /// Packs GasValues into a single 32-byte storage slot /// The layout is: +/// - `nextBaseFee` (u64): bytes [8..16] /// - `gasUsedSmoothed` (u64): bytes [16..24] /// - `gasUsed` (u64): bytes [24..32] fn pack_gas_values_for_storage(g: GasValues) -> [u8; 32] {