Skip to content

docs(precompiles): document nextBaseFee in the gas-values slot layout - #398

Open
Ruzzgar wants to merge 1 commit into
circlefin:mainfrom
Ruzzgar:docs/system-accounting-nextbasefee
Open

Ruzzgar wants to merge 1 commit into
circlefin:mainfrom
Ruzzgar:docs/system-accounting-nextbasefee

Conversation

@Ruzzgar

@Ruzzgar Ruzzgar commented Sep 13, 2026

Copy link
Copy Markdown

pack_gas_values_for_storage packs three fields into the slot:

slot[24..32] = gasUsed;
slot[16..24] = gasUsedSmoothed;
slot[8..16]  = nextBaseFee;

but the layout comment above it lists only the first two. The comment predates the nextBaseFee field (the Zero3 test helper, which really does pack two fields, carries the same text). Add the missing line.

Comment only — unpack_gas_values_from_storage already reads [8..16] and the existing round-trip test covers nextBaseFee.

…lot 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant