Created
January 22, 2019 15:49
-
-
Save crazyrabbitLTC/a23fbc1610cbb2408d9316eb278466b2 to your computer and use it in GitHub Desktop.
QuickContract.sol - ZeppelinOS Tutorial Demo Contract
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 <0.6.0; | |
import "zos-linkedlist/contracts/LinkedList.sol"; | |
//The NPM package name will have it's own folder under modules | |
contract QuickContract { | |
LinkedList private _linkedlist; | |
function setLinkedList(LinkedList linkedlist) external { | |
_linkedlist = linkedlist; | |
} | |
function getHead() public view returns (bytes32) { | |
bytes32 _node = _linkedlist.head(); | |
return _node; | |
} | |
function addNode(string memory _data) public { | |
_linkedlist.addNode(_data); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment