Skip to content

Instantly share code, notes, and snippets.

View iOSLearner-dev's full-sized avatar

iOSLearner-dev

View GitHub Profile
@iOSLearner-dev
iOSLearner-dev / MyFirstContract.sol
Created August 9, 2018 13:02
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.4.24+commit.e67f0147.js&optimize=false&gist=
// Define the pragama mark of Solidity with its version
pragma solidity ^0.4.0;
// Defining interface in solidity
interface Regulator {
function checkValue(uint amount) returns(bool);
function loan() returns(bool);
}
// Implementing Inheritance in solidity and also using interface in our contract
@iOSLearner-dev
iOSLearner-dev / MyFirstContract.sol
Created August 9, 2018 12: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.4.24+commit.e67f0147.js&optimize=false&gist=
// Define the pragama mark of Solidity with its version
pragma solidity ^0.4.0;
// Defining interface in solidity
interface Regulator {
function checkValue(uint amount) returns(bool);
function loan() returns(bool);
}
// Implementing Inheritance in solidity and also using interface in our contract