This file contains hidden or 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.5.1; | |
| contract Calculator { | |
| int public num; | |
| constructor() public { | |
| num = 1; | |
| } | |
| function getNum() view public returns(int) { |
This file contains hidden or 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.22 <0.7.0; | |
| // phone company dapp | |
| // charge telemarkers coins for calls | |
| // whitelist people don't get charged | |
| // anyone not on the whitelist has to pay a small fee | |
| contract PhoneCompany { | |
| uint public chargeAmount; | |
| uint public coinPrice; |