Skip to content

Instantly share code, notes, and snippets.

@liucodeing
liucodeing / HelloWorld.sol
Created October 19, 2020 09:08
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.5.0;
/**
* @title HelloWorld
* @dev This contract implements a function which prints "Hello World!"
* This is the entry point in the world of smart contract development
*/
contract HelloWorld {
@liucodeing
liucodeing / HelloWorld.sol
Created October 19, 2020 09:00
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.5.0;
/**
* @title HelloWorld
* @dev This contract implements a function which prints "Hello World!"
* This is the entry point in the world of smart contract development
*/
contract HelloWorld {
@liucodeing
liucodeing / HelloWorld.sol
Created July 9, 2020 12:50
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.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.5.0;
/**
* @title HelloWorld
* @dev This contract implements a function which prints "Hello World!"
* This is the entry point in the world of smart contract development
*/
contract HelloWorld {
@liucodeing
liucodeing / ballot.sol
Created November 4, 2019 04:50
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.5.11+commit.c082d0b4.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {