-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add tests and continuous integration #10
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,72 @@ | |||
pragma solidity ^0.4.23; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which contract is using Ownable? We should probably only do tests for the existing contracts, then add contract/test pairs from then on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, my idea was to show how to test ownable contracts. No problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @taiyangc, I'm using on BaseCappedTokenMock.sol file, can you take a look, please?
const TOKEN_UNIT = 1000000 | ||
const TOKEN_TOTAL_SUPPLY = 20000000000 | ||
const TOKEN_DECIMALS = 6 | ||
const INVALID_ADDRESS = '0x0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an older version of test from openzeppelin or written from scratch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @taiyangc, this was inherited from openzeppelin indeed, but I had adapted it to work on Tron since it wasn't running.
No description provided.