Skip to content

bug(script): inflated gas price estimate on Tempo #13885

@joohhnnn

Description

@joohhnnn

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

No response

What version of Foundryup are you on?

No response

What command(s) is the bug in?

forge script

Operating System

macOS (Apple Silicon)

Describe the bug

forge script shows inflated gas price estimates on Tempo mainnet (chain 4217).

forge script script/Deploy.s.sol:DeployScript --rpc-url https://rpc.presto.tempo.xyz/ --private-key <key>

Output:

Estimated gas price: 41000 USDC
Estimated amount required: 8358096000. USDC

Actual values from RPC:

  • eth_gasPrice: 20 gwei (20000000000)
  • eth_maxPriorityFeePerGas: 0
  • baseFeePerGas: 20 gwei

Expected estimate should be ~40 gwei (2 * baseFee + priority), not 41000.

Additionally, the gas price unit is displayed as "gwei" which doesn't apply to Tempo's USDC gas token.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions