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.11; | |
contract CrowdFunding { | |
// Defines a new type with two fields. | |
struct Funder { | |
address addr; | |
uint amount; | |
} | |
struct Campaign { |
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.11; | |
contract CrowdFunding { | |
// Defines a new type with two fields. | |
struct Funder { | |
address addr; | |
uint amount; | |
} | |
struct Campaign { |
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; | |
// ---------------------------------------------------------------------------- | |
// 'FIXED' 'Example Fixed Supply Token' token contract | |
// | |
// Symbol : FIXED | |
// Name : Example Fixed Supply Token | |
// Total supply: 1,000,000.000000000000000000 | |
// Decimals : 18 | |
// |
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.23; | |
//Understanding method overriding during multiple childrens | |
//inherting methods from parent contract | |
contract Main { | |
uint public num; | |
function storeNum() { | |
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.23; | |
//Understanding method overriding during multiple childrens | |
//inherting methods from parent contract | |
contract Main { | |
uint public num; | |
function storeNum() { | |
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.23; | |
contract Casting { | |
function uint8toBytes32(uint8 value) public returns(bytes32) { | |
/* | |
input: 255 | |
output: 0x00000000000000000000000000000000000000000000000000000000000000ff | |
*/ | |
return bytes32(value); |
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.23; | |
contract Casting { | |
function uint8toBytes32(uint8 value) public returns(bytes32) { | |
/* | |
input: 255 | |
output: 0x00000000000000000000000000000000000000000000000000000000000000ff | |
*/ | |
return bytes32(value); |
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.23; | |
contract Casting { | |
uint public retCheck; | |
address public owner; | |
function recAdd(address newOwner) public { | |
owner = newOwner; | |
} |
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.23; | |
contract Check { | |
uint public retCheck; | |
address public owner; | |
function recAdd(address newOwner) public { | |
owner = newOwner; | |
} |
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.23; | |
contract Stranger { | |
uint public value; | |
function execute() public { | |
num(); | |
} | |
function num() public { |