Awesome
Interacting with voting contract deployed in goerli Starkware
Prerequisites
- Node
Get it running
-
Install the required npm packages
npm install
-
Compile and Deploy the contracts
npx hardhat starknet-compile
npx hardhat starknet-deploy starknet-artifacts/contracts/Result.cairo --starknet-network alpha
npx hardhat starknet-deploy starknet-artifacts/contracts/Voter.cairo --inputs "<address-of-result-contract-here>" --starknet-network alpha
- Front-end
cd frontend
npm install
Also change VOTER_ADDRESS and RESULT_ADDRESS in app.js
npm start