-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Librarization #12
Librarization #12
Conversation
…irst step for library)
…ldFail.js from openzeppelin (copied it)
…ails even tough the name suggests it should not CRITICAL
… DSMathL can be copied and used via using exactly like in DSMath.sol contract. tests now all work as expected
@JohannesMayerConda this isn't a truffle project. We can't consider merging this as it would break everything downstream. |
I understand. Main reason why I go with this approach is that you can easily write and execute tests for this. I just write |
Tests can be found in https://github.com/dapphub/ds-math/blob/master/src/math.t.sol These tests are executed using dapp https://dapp.tools/ |
As requested in #9 here my pullrequest to change ds-math into a library. I did no other real changes on the contracts (just indentation, newer pragma version etc.). Logic should be exactly the same! I also added tests (which just call the contracts that are used for testing). I copied from ds-math/lib other repo and copied shouldFail.js from openzeppelin