Skip to content

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