Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate gas estimation #418

Open
2 tasks done
Karrq opened this issue Jun 5, 2024 · 0 comments
Open
2 tasks done

Inaccurate gas estimation #418

Karrq opened this issue Jun 5, 2024 · 0 comments
Labels

Comments

@Karrq
Copy link
Contributor

Karrq commented Jun 5, 2024

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.0.2 (8cb46fa 2024-06-05T13:34:46.413496000Z)

What command(s) is the bug in?

forge script

Operating System

None

Describe the bug

When using forge script to deploy contracts, forge attempts to calculate the exact gas required to execute a given transaction on the target chain (with --broadcast flag).

Currently, this estimation is inaccurate due to differing gas parameters, which sometimes can lead to failures when broadcasting these transactions on chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant