3 ms·
Good question. The ERC20 spec defines only what methods a contract should implement. It does not specify how those methods should be implemented. To have a tran
by spuz 6y ago
Good question. The ERC20 spec defines only what methods a contract should implement. It does not specify how those methods should be implemented. To have a transfer function that doesn't actually transfer any balance is perfectly valid (and as a user you should be sure that the contract you are calling actually does what you expect). The spec does require that a Transfer event is created however.
https://eips.ethereum.org/EIPS/eip-20#methods https://eips.ethereum.org/EIPS/eip-20#methods