Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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