Fix typo, change variable name to be consistent

This commit is contained in:
Amir Bandeali
2017-12-07 10:22:08 -08:00
parent 2cc410e61f
commit 8b29f6f18d
2 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@
pragma solidity ^0.4.11;
import ".//UnlimitedAllowanceToken.sol";
import "./UnlimitedAllowanceToken.sol";
import "./../lib/SafeMath.sol";
contract EtherToken is UnlimitedAllowanceToken, SafeMath {

View File

@@ -47,12 +47,12 @@ contract EtherToken_v2 is ERC20Token, SafeMath_v2 {
/// @dev Sells tokens in exchange for Ether, exchanging them 1:1.
/// @param amount Number of tokens to sell.
function withdraw(uint amount)
function withdraw(uint _value)
public
{
balances[msg.sender] = safeSub(balances[msg.sender], amount);
totalSupply = safeSub(totalSupply, amount);
require(msg.sender.send(amount));
Transfer(msg.sender, address(0), amount);
balances[msg.sender] = safeSub(balances[msg.sender], _value);
totalSupply = safeSub(totalSupply, _value);
require(msg.sender.send(_value));
Transfer(msg.sender, address(0), _value);
}
}