rhlsthrm / typescript-solidity-dev-starter-kit

Starter kit for smart contract development using Typescript
410 stars 127 forks source link

Enhancement request: gas cost report #12

Closed nmclrn closed 4 years ago

nmclrn commented 4 years ago

I tried adding "buidler-gas-reporter" to the starter kit project, but after installing it and adding the usePlugin... line recommended in https://buidler.dev/plugins/buidler-gas-reporter.html, I find that npm run test hits

1) Uncaught error outside test suite.

Just trying out buidler for the first time so I'm not sure whether this is a necessary config change I've overlooked in this very helpful starter kit repo (thanks - it's awesome!) or an issue with buidler-gas-reporter itself?

nmclrn commented 4 years ago

Runningnpx buidler node first gets me past the Uncaught error issue (presumably the problem is that with eth-gas-reporter installed, tests suddenly require a not-in-process node?) but it results in only an empty table of gas costs.