Skip to content

feat(forge): Add --priority-gas-price argument for forge script#5585

Merged
mattsse merged 1 commit intofoundry-rs:masterfrom
Sabnock01:sabnock/5281
Aug 10, 2023
Merged

feat(forge): Add --priority-gas-price argument for forge script#5585
mattsse merged 1 commit intofoundry-rs:masterfrom
Sabnock01:sabnock/5281

Conversation

@Sabnock01
Copy link
Contributor

Motivation

Currently, the estimated ETH_PRIORITY_GAS_PRICE used by forge script is unnecessarily large on L2's such as Optimism and Arbitrum. Resolves #5281

Solution

This PR adds an argument to manually set the priority gas price for forge script and uses that price if it is provided.

Additional context

@Sabnock01 Sabnock01 marked this pull request as ready for review August 10, 2023 12:51
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm,

merging+releasing this now, with followup improvements for L2

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.

feat(forge): make --priority-gas-price available in forge script

2 participants