Skip to content

fix(script): skip synthetic Tempo fees - #16217

Open
mablr wants to merge 6 commits into
masterfrom
mablr/tempo-script-synthetic-fees
Open

fix(script): skip synthetic Tempo fees#16217
mablr wants to merge 6 commits into
masterfrom
mablr/tempo-script-synthetic-fees

Conversation

@mablr

@mablr mablr commented Aug 17, 2026

Copy link
Copy Markdown
Member

Forge executes script deployment, setUp(), and run() inside a synthetic EVM transaction. On Tempo, that transaction inherited the selected TIP-20 fee token and attempted to charge fees against its near-maximum gas allowance, causing a false InsufficientBalance error before collected transactions could be simulated or broadcast.

This disables fee charging only for the cheatcode-enabled runner used for synthetic script execution. Runners used for RPC simulation retain normal Tempo fee processing, so insufficient balances, FeeAMM failures, and fee-dependent state changes remain visible before broadcast. The regression coverage asserts both sides of this boundary and retains CLI coverage for the affected script flow.

This change was developed with AI assistance.

Tempo script deployment, setUp, and run execute inside a synthetic runner whose oversized gas allowance must not debit TIP-20 fees. Disable fee charging only for that cheatcode-enabled runner while retaining normal fee behavior for RPC simulation of collected broadcast transactions.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Changelog found

The deterministic check will validate the changed entry.

@mablr
mablr marked this pull request as ready for review August 17, 2026 11:01
mablr

This comment was marked as outdated.

@mablr mablr closed this Aug 17, 2026
@github-project-automation github-project-automation Bot moved this to Done in Foundry Aug 17, 2026
@mablr mablr reopened this Aug 17, 2026
Comment thread crates/forge/tests/cli/script.rs
@mablr
mablr marked this pull request as draft August 17, 2026 19:39
@mablr
mablr marked this pull request as ready for review August 18, 2026 14:35
wyattloveslife-create

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants