Skip to content

Instantly share code, notes, and snippets.

View molecula451's full-sized avatar
๐ŸŒŒ
Working from home

Paul molecula451

๐ŸŒŒ
Working from home
View GitHub Profile
@molecula451
molecula451 / voting.sol
Last active October 19, 2024 19:29
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Voting {
enum VoteOption { Yes, No, None }
struct Voter {
bool hasVoted;
VoteOption vote;
uint256 votedAtBlock;

0x1e43a077028edffbc4c4e4359bba4ffca3b6f20c776db1a4f92750118546508b