Skip to content

Instantly share code, notes, and snippets.

@PRAJESH174
PRAJESH174 / Calculator.sol
Created September 5, 2025 06:05 — forked from gwenf/Calculator.sol
Ethereum Supple Chain Demo
pragma solidity ^0.5.1;
contract Calculator {
int public num;
constructor() public {
num = 1;
}
function getNum() view public returns(int) {
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;