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

Workaround hardhat-gas-reporter bug with removing --deploy-fixture #2980

Merged
merged 1 commit into from
May 11, 2022

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented May 11, 2022

In this PR we replace a previous workaround (#2970) for a bug in the hardhat-gas-reporter plugin (cgewecke/hardhat-gas-reporter#86).

It turned out that there is a much simpler workaround, which is based on just removing --deploy-fixture flag. With the flag removed it is required that we load a global snapshot of the deployment (deployments.fixture()) instead of loading a specific tag (deployments.fixture(<tag>). Which we do anyway after one of a recent code updates.

In #2970 we introduced a
workaround for a bug in hardhat-gas-reporter plugin
cgewecke/hardhat-gas-reporter#86.

It turned out that there is a much simpler workaround, which is based on
just removing `--deploy-fixture` flag. With the flag removed it is
required that we load a global snapshot of the deployment
(`deployments.fixture()`) instead of loading a specific tag
(`deployments.fixture(<tag>)`. Which we do anyway after one of a
recent code updates.

We removed all the traces of the previous workaround.
@nkuba nkuba requested a review from pdyraga May 11, 2022 14:31
@pdyraga pdyraga merged commit 8a29851 into main May 11, 2022
@pdyraga pdyraga deleted the alternative-gas-reporter-workaround branch May 11, 2022 15:07
@pdyraga pdyraga added this to the solidity/v2.0.0 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants