Skip to content

Instantly share code, notes, and snippets.

View 738's full-sized avatar
🍣
awesome sushi

Junwoo Ji 738

🍣
awesome sushi
View GitHub Profile
@738
738 / test.js
Created August 12, 2018 10:09
test
function hello() {
console.log("hello world");
}
@738
738 / BabySitter.sol
Last active August 8, 2018 14:11
CryptoDolbom
pragma solidity ^0.4.24;
import "./User.sol";
contract BabySitter is User {
bool isMale; // 성별
uint16 birthOfDate; // 생년월일
}
class ExampleContract {
constructor() {
// define property named "num" in storage.
LocalContractStorage.defineProperty(this, "num");
}
init() {
// it is implemented just once when contract is deployed.
// the property defined in contructor can be accessed like this. default "num" value is set as 0.
this.num = 0;