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

TokenVault: Implementing full EIP-20 support and improved tests #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zachwylde00
Copy link

Previously we had a check for isToken() interface function.
The check is important for testing if the token is correct.
However, not all of the EIP-20 tokens support such a check.
Therefore, modified the check to check totalSupply instead.

0 supply is permitted, for example the token could be minted afterwards.

Also, there were no tests for this check, added those.
pragma_for_bitcoincash.pdf

Previously we had a check for isToken() interface function.
The check is important for testing if the token is correct.
However, not all of the EIP-20 tokens support such a check.
Therefore, modified the check to check totalSupply instead.

0 supply is permitted, for example the token could be minted afterwards.

Also, there were no tests for this check, added those.
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