From the course: Building Web3 Decentralized Apps in Ethereum

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Deploying smart contracts with Hardhat

Deploying smart contracts with Hardhat

- [Instructor] Now that we've written our smart contract, we'll need to deploy it to a network so that we can interact with it and test it. Let's go back into our files. And there's a couple things to have a look at. Now, in our contracts, we have our NFT contract that we created, and we also have this greeter one, and this was part of the project that got created that we created with Hardhat. And we're going to use Hardhat for deployment. Notice it also creates a sample script. Now this script is really the deploy script. So this is what's going to do the deploying, and this one is built for that greeter, but it's nice because it gives us an example that we can utilize. And it's going to deploy based on how we configure it in the Hardhat config file. So the first thing we're going to do is we're going to change our Hardhat configuration so that it's set up for how we need to deploy it. For the most part, everything's…

Contents