Skip to content
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

Closed
wants to merge 16 commits into from
Closed

Conversation

JohannesMayerConda
Copy link

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

@rainbreak
Copy link
Member

@JohannesMayerConda this isn't a truffle project. We can't consider merging this as it would break everything downstream.

@rainbreak rainbreak closed this Dec 1, 2018
@JohannesMayerConda
Copy link
Author

I understand. Main reason why I go with this approach is that you can easily write and execute tests for this. I just write truffle test and see if stuff is broken. I see that this is a breaking change. Could we have a separate "Development Repo" and contract file is just copy-pasted back here from time to time? - Just a thought...

@rainbreak
Copy link
Member

Tests can be found in https:/dapphub/ds-math/blob/master/src/math.t.sol

These tests are executed using dapp https://dapp.tools/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants