question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gas reporter crashes after deleting or disabling previously migrated contracts

See original GitHub issue

As reported by @fodisi in issue comment 104, if there are “stale” contracts in the Truffle build folder - e.g. contracts which you were previously migrating but have removed - the reporter will try to fetch deployment data for them using a transaction hash that no longer exists.

A simple work-around is to rm -rf build.

Gas reporter should not assume transaction hashes in the build folder are valid.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fodisicommented, Feb 27, 2020

@cgewecke Yes, I think it’s a good idea to do so. I’ll work on it later today and submit a PR with the fix. Thanks for your guidance!

1reaction
cgeweckecommented, Feb 27, 2020

@fodisi Ah yes - that’s the right way 🙂.

Can we also move this.trackNameByAddress inside the if?

Read more comments on GitHub >

github_iconTop Results From Across the Web

hardhat-gas-reporter - npm
Hardhat plugin for eth-gas-reporter, a mocha reporter for Ethereum test suites. Latest version: 1.0.9, last published: 4 months ago.
Read more >
Attempting to Delete a Token with ID (0.0.0) Causes Crash/Hang of ...
The protobuf accepts a TokenRef which should accept a symbol Address as an input option, however when submitting a TokenDeletion message using the...
Read more >
Report Wizard crashes when reporting on Company Info only ...
Reckon Accounts Hosted does not remember the list of previous company files opened. ... Uploading or downloading the files to and from Reckon...
Read more >
Frequently Asked Questions - Flux Wiki
Find answers to questions that have been asked by multiple users.
Read more >
Global Trends 2030: Alternative Worlds
As with previous editions, we hope that this report will stimulate strategic thinking by identifying critical trends and potential discontinuities. We ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found