TokenMarketNet / smart-contracts

Ethereum smart contracts for security and utility tokens
https://tokenmarket.net/
Other
1.34k stars 563 forks source link

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

Open zachwylde00 opened 4 years ago

zachwylde00 commented 4 years ago

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