Home

Awesome

Interacting with voting contract deployed in goerli Starkware

Prerequisites

Get it running

  1. Install the required npm packages npm install

  2. 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
  1. Front-end
cd frontend
npm install

Also change VOTER_ADDRESS and RESULT_ADDRESS in app.js

npm start
  1. Install Argent X