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.18; | |
contract underscore { | |
uint public a; | |
constructor() public { | |
a = 10; | |
} | |
modifier conditionalChangeAtoThirty() { | |
_; |
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.21; | |
contract Grounder { | |
address public parent; | |
enum State { startGround, endGround } | |
State public state; | |
uint public startGroundTimeStamp; | |
uint public endGroundTimeStamp; | |
uint[] public moveTimeStamp; |
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.17; | |
contract ImageHash { | |
string ipfsHash; | |
event savedHash( | |
); | |
function setHash(string x) public { | |
ipfsHash = x; |
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
require('babel-register'); | |
var HDWalletProvider = require("truffle-hdwallet-provider-privkey"); | |
const privKeys = ["f37390fa053b9ff1f9c67cf9d46adee093c199b44232c7dc29d2faaccada9211"]; | |
module.exports = { | |
networks: { | |
ganache: { | |
host: '127.0.0.1', | |
port: 7545, | |
network_id: '*' // Match any network id |