Hi,
as an exercice to learn how to use Truffle, I'm developping an ERC20 token test suite.
I realised that the ERC20 token on ethereum.org does not comply with the ERC20 token standard <:o) !!!
But in the example, you are too strict when checking for overflows. A 0 token transaction will revert.
I think we need to change the > into >= to allow successful transfers of 0 token as required by the standard.
Hi, as an exercice to learn how to use Truffle, I'm developping an ERC20 token test suite. I realised that the ERC20 token on ethereum.org does not comply with the ERC20 token standard <:o) !!!
If you look at the ERC20 token standard, here: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#transfer You can read that: Transfers of 0 values MUST be treated as normal transfers and fire the Transfer event.
But in the example, you are too strict when checking for overflows. A 0 token transaction will revert. I think we need to change the > into >= to allow successful transfers of 0 token as required by the standard.