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

--with-gas-price option not work #5910

Closed
2 tasks done
s1nc3ju1y opened this issue Sep 26, 2023 · 0 comments · Fixed by #6826
Closed
2 tasks done

--with-gas-price option not work #5910

s1nc3ju1y opened this issue Sep 26, 2023 · 0 comments · Fixed by #6826
Labels
T-bug Type: bug

Comments

@s1nc3ju1y
Copy link

s1nc3ju1y commented Sep 26, 2023

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (35b6c01 2023-09-25T18:05:31.308398000Z)

What command(s) is the bug in?

forge script \ --broadcast \ --rpc-url RPC_URL \ --private-key PRIVATEKEY \ --with-gas-price 0 \ SolveTutorial -vvv

Operating System

macOS (Apple Silicon)

Describe the bug

After upgrading foundry to forge 0.2.0 (35b6c01 2023-09-25T18:05:31.308398000Z), the --with-gas-price seems to not work. I ran the same command with an older version forge 0.2.0 (6676e81 2023-08-22T00:28:15.086036000Z). It ran successfully. And after I upgrade forge to the latest version forge 0.2.0 (35b6c01 2023-09-25T18:05:31.308398000Z), the same command failed with the following error message.

The application panicked (crashed).
Message:  Mismatch between definition and access of `with_gas_price`. Could not downcast to TypeId { t: 331106880534545003358835161969624673679 }, need to downcast to TypeId { t: 336374466001064399360049483825885140353 }

Location: /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.4.4/src/parser/error.rs:32

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[1]    2495 abort      forge script --broadcast --rpc-url  --private-key  --with-gas-price 0  -vvv

My colleague also reproduce this bug on her mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant