Skip to content

fix(prover): allow base_fee = 0 for gasless chains#190

Open
nadeemb53 wants to merge 1 commit into
developfrom
fix/prover-gasless-base-fee
Open

fix(prover): allow base_fee = 0 for gasless chains#190
nadeemb53 wants to merge 1 commit into
developfrom
fix/prover-gasless-base-fee

Conversation

@nadeemb53
Copy link
Copy Markdown
Member

@nadeemb53 nadeemb53 commented Apr 21, 2026

Swap validate:"required" on Config.Layer2.BaseFee for an explicit viper.IsSet("layer2.base_fee") check. required rejects 0 on a uint, blocking gasless L2 setups where every block has baseFeePerGas=0. Missing-field detection for non-gasless chains is preserved and the error format is unchanged.

Zero is ZK-safe: the execution circuit gates the baseFee public-input check with mustBeEqualIfExtractedIsNonZero in prover/circuits/execution/pi_wizard_extraction.go, so the constraint is trivially satisfied when the extracted block baseFee is 0.

@nadeemb53 nadeemb53 force-pushed the fix/prover-gasless-base-fee branch 3 times, most recently from 18ef4f4 to cf938e8 Compare April 21, 2026 17:26
@nadeemb53 nadeemb53 force-pushed the fix/prover-gasless-base-fee branch from cf938e8 to e3e254f Compare April 21, 2026 18:50
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