This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
import "./User.sol"; | |
contract BabySitter is User { | |
bool isMale; // 성별 | |
uint16 birthOfDate; // 생년월일 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hello() { | |
console.log("hello world"); | |
} |