This little repo is the week 4 project of the ethereum bootcamp of Alchemy.
The Goal is simple, emit the winner event on this smart contract on the Goerli testnet here.
$ npm install
If you want to run the test:
$ npx hardhat test
Before deploying, remember to create a .env and add your private key and alchemy info then:
$ npx hardhat run scripts/deploy.js --network goerli
After the deployement get the address and past it in the "scripts/trigger.js" l.19 then:
$ npx hardhat run scripts/trigger.js --network goerli
If you succeed, you will view your transaction hash here.