Skip to main content
added 130 characters in body
Source Link
Tony Dang
  • 2.2k
  • 2
  • 10
  • 16

What have I done wrong?

WRONG

_balances[msg.sender] = _balances[msg.sender].sub(tokensToTransfer);

CORRECT

_balances[msg.sender] = _balances[msg.sender].sub(value);

Why has nothing been sent to the contract?

I didn't see any code to add balance for contract

WRONG

_balances[msg.sender] = _balances[msg.sender].sub(tokensToTransfer);

CORRECT

_balances[msg.sender] = _balances[msg.sender].sub(value);

What have I done wrong?

WRONG

_balances[msg.sender] = _balances[msg.sender].sub(tokensToTransfer);

CORRECT

_balances[msg.sender] = _balances[msg.sender].sub(value);

Why has nothing been sent to the contract?

I didn't see any code to add balance for contract

Source Link
Tony Dang
  • 2.2k
  • 2
  • 10
  • 16

WRONG

_balances[msg.sender] = _balances[msg.sender].sub(tokensToTransfer);

CORRECT

_balances[msg.sender] = _balances[msg.sender].sub(value);