Tenderly / tenderly-cli

CLI tool for Smart Contract error tracking, monitoring and alerting.
https://tenderly.co
GNU General Public License v3.0
522 stars 137 forks source link

Resolve "Couldn't read Hardhat config file" #133

Closed solimander closed 1 year ago

solimander commented 1 year ago

This PR fixes an issue where Tenderly throws Couldn't read Hardhat config file when attempting to use tenderly export against newer Hardhat versions.

The underlying error is: TypeError: Do not know how to serialize a BigInt. Hardhat now uses BigInts in its config, which are not serializable, so we must convert them to strings during the JSON.stringify call.

This is likely the cause of the failure seen in https://github.com/Tenderly/tenderly-cli/issues/110

samholmes commented 1 year ago

First attempt at using Tenderly CLI to export my hardhat transactions during development and it failed because of this error. I am blocked on using Tenderly until this is fixed. I'd patch myself, but that'd require that I build my own binary (which I don't want to get into if I don't have too).

Please someone review and publish a hotfix release!

alexanderattar commented 1 year ago

Bumping this as it seems to be the same issue I ran up against yesterday https://github.com/Tenderly/tenderly-cli/issues/139 Would appreciate if the fix could be made 🙏