Deploying the Auction Smart Contract
Learn how to deploy a smart contract to Ganache and use the Truffle console to interact with it.
We’ve covered the theory of deploying smart contracts with the Truffle Framework. Now, we'll deploy the Auction
smart contract. While we could deploy it directly to the Mainnet or Goerli, it would be a good idea to first see how it works in a testing environment. For this, we can use one of the local Ethereum implementations, such as Ganache, which we'll cover in this lesson.
Deploy the Auction
smart contract
To deploy the Auction
smart contract, we first need to have an Ownable
instance that'll be sold at the auction. Therefore, we'll write a migration script that deploys the Ownable
instance and then passes its address to the constructor of the Auction
.
Get hands-on with 1400+ tech skills courses.