Thursday, June 29, 2023

147: Deploying to Testnet

 Today I deployed my smart contract to the Goerli testnet, using the Hardhat Toolbox and the Alchemy API. The newest version of Hardhat makes deployment quite simple, although I did get confused that the address of the contract is now called the "target". Part of the process involved going into my hardhat configuration file and defining the Goerli testnet network, along with the URL provided by Alchemy and the private key of the account paying the fees. With these in place, the contract is deployed and I saved its target and ABI to a utils folder within my React app for the frontend. Tomorrow we begin interacting with the blockchain via the React app.

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...