Skip to content

Commit

Permalink
make transfer func compatible to eip20 standard
Browse files Browse the repository at this point in the history
As discussed in ethereum/solidity#4116
Due to solidity compiler change after v0.4.22, this wrong transfer function will cause serious issues.
We (SECBIT.IO) found many people followed this tutorial on ethereum.org.
SHOULD fix this ASAP!
  • Loading branch information
smartgeek1003 committed Jun 7, 2018
1 parent e7c29fd commit 75cb0cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solidity/token-advanced.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ contract TokenERC20 {
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}

/**
Expand Down

0 comments on commit 75cb0cd

Please sign in to comment.