Skip to content

Instantly share code, notes, and snippets.

@pipermerriam
Created September 30, 2015 15:54
Show Gist options
  • Select an option

  • Save pipermerriam/3291be6a539c972f3b28 to your computer and use it in GitHub Desktop.

Select an option

Save pipermerriam/3291be6a539c972f3b28 to your computer and use it in GitHub Desktop.
contract SomeLib {
uint value;
function getValue() returns (uint) {
return value;
}
function setValue(uint _value) {
value = _value;
}
}
contract Main {
function fetchValue() returns (uint) {
return SomeLib.getValue();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment