Skip to content

chore: sync state gas field - #907

Merged
mattsse merged 2 commits into
foundry-rs:masterfrom
figtracer:fig/state-gas-field
Aug 28, 2026
Merged

chore: sync state gas field#907
mattsse merged 2 commits into
foundry-rs:masterfrom
figtracer:fig/state-gas-field

Conversation

@figtracer

Copy link
Copy Markdown
Member

Sync Vm.Gas with Foundry's six-field return ABI by documenting gasTotalUsed as regular gas and exposing gasStateUsed for net state gas. This keeps Forge Std callers aligned with the state-gas reporting added in foundry-rs/foundry#16387.

AI assistance was used to implement and test this change.

Match Vm.Gas with Foundry's six-field ABI so callers can read regular and state gas separately.
Apply the stable formatter output required by CI after the Forge 1.8.1 release.
@figtracer
figtracer marked this pull request as ready for review August 28, 2026 19:53

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but this is technically breaking
but we already have in on foundry like this
ref foundry-rs/foundry#16442

so for next 1.x foundry release we must publish this as well

@mattsse
mattsse merged commit 88c8a28 into foundry-rs:master Aug 28, 2026
20 checks passed
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.

2 participants