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

Add tests and continuous integration #10

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

dbuarque
Copy link
Contributor

@dbuarque dbuarque commented Jan 8, 2019

No description provided.

@@ -0,0 +1,72 @@
pragma solidity ^0.4.23;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

@dbuarque dbuarque Feb 4, 2019

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'
Copy link
Contributor

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?

Copy link
Contributor Author

@dbuarque dbuarque Jan 14, 2019

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.

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