Skip to content

Instantly share code, notes, and snippets.

@crazyrabbitLTC
Created January 22, 2019 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyrabbitLTC/a23fbc1610cbb2408d9316eb278466b2 to your computer and use it in GitHub Desktop.
Save crazyrabbitLTC/a23fbc1610cbb2408d9316eb278466b2 to your computer and use it in GitHub Desktop.
QuickContract.sol - ZeppelinOS Tutorial Demo Contract
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