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

feat(config): allow gas_limit = \"max\" #3811

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Dec 1, 2022

Motivation

Add a "max" alias for gas_limit

Solution

@mattsse mattsse requested a review from rkrasiuk December 1, 2022 21:22
@@ -120,6 +120,7 @@ block_number = 0
fork_block_number = 0
chain_id = 1
# NOTE due to a toml-rs limitation, this value needs to be a string if the desired gas limit exceeds `i64::MAX` (9223372036854775807)
# `gas_limit = "Max"` is equivalent to `gas_limit = "18446744073709551615"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we change the default gas_limit to be the max also? with u64::MAX that seems ok, since you can still run out of gas so there's not really any added "infinite run duration" risk

Copy link
Member

Choose a reason for hiding this comment

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

let's do that separately as it relates to the "revm unlimited gas" conversation

@gakonst gakonst merged commit 001ea1b into foundry-rs:master Dec 1, 2022
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.

None yet

3 participants