aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2017-12-08 02:22:08 +0800
committerAmir Bandeali <abandeali1@gmail.com>2017-12-13 07:05:28 +0800
commit8b29f6f18de0af62cb1737a3b6d4cc188b764b97 (patch)
treee3436e50fff38a7c5f47e59011c2e4dc7a8d6adf /packages
parent2cc410e61f75a43ce36416b7d15f897d6e7fc92c (diff)
downloaddexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar.gz
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar.bz2
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar.lz
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar.xz
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.tar.zst
dexon-sol-tools-8b29f6f18de0af62cb1737a3b6d4cc188b764b97.zip
Fix typo, change variable name to be consistent
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/contracts/tokens/EtherToken.sol2
-rw-r--r--packages/contracts/contracts/tokens/EtherToken_v2.sol10
2 files changed, 6 insertions, 6 deletions
diff --git a/packages/contracts/contracts/tokens/EtherToken.sol b/packages/contracts/contracts/tokens/EtherToken.sol
index 900b95337..daef97d8f 100644
--- a/packages/contracts/contracts/tokens/EtherToken.sol
+++ b/packages/contracts/contracts/tokens/EtherToken.sol
@@ -18,7 +18,7 @@
pragma solidity ^0.4.11;
-import ".//UnlimitedAllowanceToken.sol";
+import "./UnlimitedAllowanceToken.sol";
import "./../lib/SafeMath.sol";
contract EtherToken is UnlimitedAllowanceToken, SafeMath {
diff --git a/packages/contracts/contracts/tokens/EtherToken_v2.sol b/packages/contracts/contracts/tokens/EtherToken_v2.sol
index fe6b64266..d56d54432 100644
--- a/packages/contracts/contracts/tokens/EtherToken_v2.sol
+++ b/packages/contracts/contracts/tokens/EtherToken_v2.sol
@@ -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);
}
}