cgewecke / hardhat-gas-reporter

Gas Usage Analytics for Hardhat
MIT License
404 stars 55 forks source link

Fix crash when --parallel flag is used #219

Closed cgewecke closed 4 months ago

cgewecke commented 4 months ago

218

This logic used to be inside TASK_TEST, so it needed to runSuper(). An error is thrown if there's no override.

Simply returning could be an issue for anyone who wants to override the reporter tasks.

Warning is displayed correctly now:

>>>>> WARNING (hardhat-gas-reporter plugin) <<<<<<
Gas reporting has been skipped because plugin `hardhat-gas-reporter` does not support the --parallel flag.
>>>>>>>>>>>>>>>>>>>>