You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to get Tenderly setup locally in a project to be able to push up the contracts and verify for debugging purposes, but have not been successful due to receiving the error Couldn't read Hardhat config file with any variation of config even when taking out more complex aspects of our project's config and trying the simplest config file I can think of. Running the command tenderly contracts push --debug I get the full error output below:
✗ tenderly contracts push --debug
Setting up your project...
Trying OpenZeppelin config path: networks.js
couldn't read new OpenzeppelinConfig config file
Trying buidler config path: buidler.config.js
couldn't read new Buidler config file
Trying hardhat config path: hardhat.config.js
unable to fetch config
Couldn't read Hardhat config file
Trying hardhat ts config path: hardhat.config.ts
Making request
Got response with body
Analyzing Hardhat configuration...
Trying Hardhat config path: /Users/alexander/Development/holograph/workspace/protocol/hardhat.config.js
Trying Hardhat config path: /Users/alexander/Development/holograph/workspace/protocol/hardhat.config.ts
unable to upload contracts: unable to fetch config: cannot evaluate hardhat.config.ts, tried path: /Users/alexander/Development/holograph/workspace/protocol/hardhat.config.ts, error: exit status 1, output: {
resolvedConfig: {
solidity: { compilers: [Array], overrides: {} },
defaultNetwork: 'sepolia',
networks: {
hardhat: [Object],
localhost: [Object],
sepolia: [Object],
tenderly: {}
},
paths: {
root: '/Users/alexander/Development/holograph/workspace/protocol',
configFile: '/Users/alexander/Development/holograph/workspace/protocol/hardhat.config.ts',
sources: '/Users/alexander/Development/holograph/workspace/protocol/contracts',
cache: '/Users/alexander/Development/holograph/workspace/protocol/cache',
artifacts: '/Users/alexander/Development/holograph/workspace/protocol/artifacts',
tests: '/Users/alexander/Development/holograph/workspace/protocol/test'
},
mocha: { timeout: 40000 }
},
userConfig: {
solidity: '0.8.13',
defaultNetwork: 'sepolia',
networks: { sepolia: [Object] }
}
}
[eval]:20
var jsonConfig = JSON.stringify(config, (key, value) => {
^
TypeError: Do not know how to serialize a BigInt
at JSON.stringify (<anonymous>)
at [eval]:20:25
at Script.runInThisContext (node:vm:129:12)
at Object.runInThisContext (node:vm:305:38)
at node:internal/process/execution:76:19
at [eval]-wrapper:6:22
at evalScript (node:internal/process/execution:75:60)
at node:internal/main/eval_string:27:3
Couldn't read Hardhat config file
I have tried even with making the config file as simple as possible with the code below:
Hello,
I have been trying to get Tenderly setup locally in a project to be able to push up the contracts and verify for debugging purposes, but have not been successful due to receiving the error
Couldn't read Hardhat config file
with any variation of config even when taking out more complex aspects of our project's config and trying the simplest config file I can think of. Running the commandtenderly contracts push --debug
I get the full error output below:I have tried even with making the config file as simple as possible with the code below:
Am I missing something simple or is this a weird bug? Here are my dependencies for context unless there is a known issue:
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: