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

how to estimate gas for Optimisim and Arbitrum Nova? #148

Closed
Andriy-Kulak opened this issue Feb 23, 2023 · 2 comments
Closed

how to estimate gas for Optimisim and Arbitrum Nova? #148

Andriy-Kulak opened this issue Feb 23, 2023 · 2 comments

Comments

@Andriy-Kulak
Copy link

Hi Team!

Is there a way to generate gas costs for Opitimism & Arbitrum? There is no documentation on which tokens are supported. i tried adding token "OP" for optimism which seems to work but costs seem really low so I am not sure if I should trust them since there is no documentation on which tokens can be passed in.

If OP / Arbitrum is not supported here, is there a way to estimate gas costs of contract deployment and method execution using hardhat?

@math77
Copy link

math77 commented May 13, 2023

I'm interested too

@cgewecke cgewecke mentioned this issue Jan 31, 2024
@cgewecke cgewecke mentioned this issue Feb 11, 2024
54 tasks
@cgewecke
Copy link
Owner

Support for optimism has been added in the latest release (2.0). To get gas usage for that network just set the L2 option as below:

gasReporter: {
  L2: "optimism"    
}

Arbitrum support is in the pipeline and being tracked via #181. Closing here as partially complete in favor of #181.

https://github.com/cgewecke/hardhat-gas-reporter/releases/tag/v2.0.0

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

No branches or pull requests

3 participants