Skip to content

Instantly share code, notes, and snippets.

View John-Doggett's full-sized avatar

John Doggett John-Doggett

View GitHub Profile
@John-Doggett
John-Doggett / luckynumber.sol
Created May 8, 2023 21:17
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.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.19;
contract LuckyNumberMachine {
address owner;
uint256 contractBalance;
constructor() {
owner = msg.sender;
}