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

Make gaslimit and gasprice usable in tracecall #75

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

area
Copy link
Contributor

@area area commented Jul 17, 2024

As it stands, the gasLimit and gasPrice parameters (albeit undocumented?) are not usable. This is because hardhat enforces command line parameters to be lowercase. When trying to use latest hardhat-tracer, and passing --gasLimit to tracecall:

Error HH310: Invalid param --gasLimit. Command line params must be lowercase.

But then when trying to make it lowercase:

Error HH305: Unrecognized param --gaslimit

This PR makes them lowercase. It also appears to work - when tracing a call with --gaslimit and providing much less gas than it needs, at the end of my call I get:

   [EXCEPTION] EvmError(reason: "OUT_OF_GAS")

as I would expect.

@zemse
Copy link
Owner

zemse commented Jul 22, 2024

Thanks for the PR!

@zemse zemse merged commit b4bf4da into zemse:v3 Jul 22, 2024
@area area deleted the fix/gasLimitPrice branch July 22, 2024 20:08
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.

2 participants