Skip to content

Instantly share code, notes, and snippets.

@MajdT51
Last active September 20, 2019 09:28
Show Gist options
  • Save MajdT51/6f4ba42fb5bd781dda5bab0fff106088 to your computer and use it in GitHub Desktop.
Save MajdT51/6f4ba42fb5bd781dda5bab0fff106088 to your computer and use it in GitHub Desktop.
example how to use library in contract
uint256 currentBalance;
function pay(uint256 amount) public {
require(amount > 0, "amount is not bigger than zero");
uint256 currentBalance = 10;
currentBalance = currentBalance.add(amount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment