Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VishakhaBansal16 opened this issue Aug 23, 2023 · 1 comment

Comments

@VishakhaBansal16
Copy link

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.

@beruda
Copy link
Contributor

beruda commented Aug 23, 2023

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants