-
-
Notifications
You must be signed in to change notification settings - Fork 93
Setting 'artifactType' breaks the gas report #226
Comments
It possibly has to do with this line: https://github.com/cgewecke/buidler-gas-reporter/blob/master/src/index.ts#L75 |
What are you trying to do when using this setting? The docs on this aren't super clear (sorry) but the core idea is that you could write a method which translates the artifact format of the development platform you're working with into something the reporter can process. For buidler this is already done as part of |
I'm not trying to achieve anything in particular except get myself familiar with the API and run the gas reporter. In the README, it says that "artifactType" is either a function or a string. I went with the latter and set the value in the "gasReporter" config in |
Yes tbh it's not really meant to be used with buidler. Was added mostly to try to help address #128 and make buidler-gas-reporter-like integrations possible. Thanks for finding this...it's not very well explained. |
Happy to help. Sorry, I guess I should've opened this in the |
Hi! eth-gas-reporter is being deprecated in favor of hardhat-gas-reporter. In the latest version at Hardhat, https://github.com/cgewecke/hardhat-gas-reporter/releases/tag/v2.0.0 |
Description
Setting any value to
artifactType
, even a correct value like "truffle-v5" or "buidler-v1", breaks the gas report:Steps to Reproduce
buidler.config.ts
yarn run
(don't worry, I set.only
on a describe so that it doesn't take long)Environment
The text was updated successfully, but these errors were encountered: