tenderly-cli icon indicating copy to clipboard operation
tenderly-cli copied to clipboard

Couldn't read Hardhat build files at: deployments when trying to push contracts to tenderly

Open VishakhaBansal16 opened this issue 2 years ago • 1 comments

dte-202@dte202-Latitude-5490:~/Documents/Simulation$ tenderly contracts push Setting up your project... Analyzing Hardhat configuration... Pushing Smart Contracts for project: sca Couldn't read Hardhat build files at: deployments

This is my hardhat.config.js file -

//require("hardhat-deploy-tenderly"); const tdly = require("@tenderly/hardhat-tenderly"); tdly.setup({automaticVerifications: true}); /** @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.19",

networks: { localhost: { url: 'http://127.0.0.1:8545', // Replace with the URL of your local Hardhat network }, },

tenderly: { username: "VishakhaBansal", // tenderly username (or organization name) project: "sca" // project name //privateVerification: false // if true, contracts will be verified privately, if false, contracts will be verified publicly } };

Please tell me where I am doing wrong.

VishakhaBansal16 avatar Aug 23 '23 03:08 VishakhaBansal16

You should be relying on the HardHat plugin's automatic verification — it will kick in once you run your HardHat deploy script. We're moving away from tenderly contracts push, and will sunset that command sometime down the road.

This line:

tdly.setup({automaticVerifications: true});

makes sure that the verification will kick in once you run your deployment, no need to do anything else 👍

beruda avatar Aug 23 '23 13:08 beruda