Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 3.82 KB

REPORT.md

File metadata and controls

87 lines (56 loc) · 3.82 KB

Weekend Project 2

Project instructions

This is a group activity for at least 3 students:

  • Develop and run scripts for “Ballot.sol” within your group to give voting rights, casting votes, delegating votes and querying results
  • Write a report with each function execution and the transaction hash, if successful, or the revert reason, if failed
  • Submit your weekend project by filling the form provided in Discord
  • Submit your code in a github repository in the form

Group 2

Unique id Discord username
RAAzLF @GRAVER 👾
2SyBp0 @wackozacco
10exgX @δαλλασκατ
r5YSqY @imchrismayfield
HhHAQw @swooz
Pok9XD @Timster
T5zGzt @Carl Youngblood

List of interactions

  1. 💫 [Pass]: Deployed Ballot.sol smart contract on Sepolia testnet

    1. npx ts-node --files scripts/DeployWithViem.ts
    2. TxHash (0x80...bF9B)
    3. Script ↗

  2. 💫 [Pass]: Call vote function

    1. npx ts-node --files scripts/CastVote.ts 0x329590c91563584091f6f4d8909728eb1050efec 2
    2. TxHash (0x81...91b0)
    3. Script ↗ Screenshot_2024-08-18_at_4 06 51_AM

  3. 💫 [Pass]: Call giveRightToVote function from the chairman address

    1. npx ts-node --files scripts/GiveRightToVote.ts 0x329590C91563584091f6f4D8909728EB1050EFEC 0x99940BeaCB5FC1d87b7Df18736559c66A0f98b23
    2. TxHash (0x80715279...496BEbF9B)
    3. Script ↗

🚨 Attempting to call this function with an address that isn't part of the voters will cause it to revert with an unspecified error message.


  1. 💫 [Pass]: Call delegateVote function

    1. npx ts-node --files scripts/DelegateVote.ts 0x329590C91563584091f6f4D8909728EB1050EFEC 0x99940BeaCB5FC1d87b7Df18736559c66A0f98b23
    2. TxHash (0x80715279...496BEbF9B)
    3. Script ↗

  2. 💫 [Pass]: Call winnerName view function

    1. npx ts-node --files scripts/PrintResults.ts 0x329590c91563584091f6f4d8909728eb1050efec
    2. Script ↗
    Screenshot 2024-08-19 at 12 21 20 AM
  3. 💫 [Pass]: Call vote function

    1. npx ts-node --files scripts/CastVote.ts 0x329590c91563584091f6f4d8909728eb1050efec 3

    2. TxHash (0x55631F25...C58241bE4)

    3. Script ↗

      image (5)


  4. 💫 [Pass]: Call vote function

    1. npx ts-node --files scripts/CastVote.ts 0x329590c91563584091f6f4d8909728eb1050efec 3

    2. TxHash (0x822D80eC...51E720EAa)

    3. Script ↗

      Screenshot 2024-08-18 at 11 50 27 PM