Skip to content

TUTORIAL 09 MyToken.sol #32

Description

@jjmr007

function "approve" shuoldn't be something like this?

`function approve(address _spender, uint _value) public returns (bool success) {
   
    if (_value > 0 && __balanceOf[msg.sender] >= _value) {
    __allowances[msg.sender][_spender] = _value;
    return true;
    }
    return false;
}`

line 49, file MyToken.sol
thanks! =)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions