Skip to content

test: assert the outbound success path records the OP-Stack L1 fee (F-2026-18145) - #328

Closed
Aman035 wants to merge 2 commits into
audit-fixesfrom
F-2026-18145-tests
Closed

test: assert the outbound success path records the OP-Stack L1 fee (F-2026-18145)#328
Aman035 wants to merge 2 commits into
audit-fixesfrom
F-2026-18145-tests

Conversation

@Aman035

@Aman035 Aman035 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Follow-up to #304 (F-2026-18145), which is merged. Test-only.

The fix routes both settlement paths through gasFeeUsed(gasUsed, effectiveGasPrice, l1Fee), but only the revert path had a regression. The success path through the confirmer, which the finding names first, had none.

  • An outbound whose receipt carries a nonzero l1Fee must store execution + l1Fee, and explicitly not the execution-only figure.
  • A receipt with no effectiveGasPrice must leave the outbound PENDING with no cost recorded, rather than confirming a partial one. That guard also prevents a nil dereference.
  • Mutation checked: dropping l1Fee from the helper, and removing the effectiveGasPrice guard, each fail.

@Aman035

Aman035 commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

Closing: no code changes going out for this finding. The fix (#304) is merged; these were coverage-only additions. Branch F-2026-18145-tests is retained if we want them later.

@Aman035 Aman035 closed this Aug 25, 2026
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