Skip to content

Instantly share code, notes, and snippets.

View morinousagi's full-sized avatar

Jasmine morinousagi

View GitHub Profile
@morinousagi
morinousagi / contracts...SimpleStorage.sol
Created April 29, 2026 01:40
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.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract SimpleStorage {
string public message;
function setMessage(string memory _message) public {
message = _message;
}
@morinousagi
morinousagi / contracts...OneClickVote.sol
Created April 29, 2026 01:40
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.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract OneClickVote {
bool public vote; // true = YES, false = NO
address public voter; // who voted
bool public hasVoted;
function voteYes() public {
@morinousagi
morinousagi / contracts...MessageBoard.sol
Created April 29, 2026 01:39
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.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract MessageBoard {
string public lastMessage;
address public lastSender;
uint public totalMessages;
function postMessage(string memory _message) public {