Last active
September 20, 2019 09:28
-
-
Save MajdT51/6f4ba42fb5bd781dda5bab0fff106088 to your computer and use it in GitHub Desktop.
example how to use library in 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
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