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.
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