Component
Forge
Have you ensured that all of these are up to date?
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.
Component
Forge
Have you ensured that all of these are up to date?
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 scriptshows inflated gas price estimates on Tempo mainnet (chain 4217).Output:
Actual values from RPC:
eth_gasPrice: 20 gwei (20000000000)eth_maxPriorityFeePerGas: 0baseFeePerGas: 20 gweiExpected 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.