aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-23 00:35:35 +0800
committerFabio Berger <me@fabioberger.com>2018-06-23 00:35:35 +0800
commitba14850c9a3f774169db1b67446618bb84daae54 (patch)
tree540d887fd520a9e7f60a089673e5e48785d36d12
parent59d3a219937a80fa6f8d6096e9a54534103c0cd7 (diff)
downloaddexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar.gz
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar.bz2
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar.lz
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar.xz
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.tar.zst
dexon-sol-tools-ba14850c9a3f774169db1b67446618bb84daae54.zip
Standardize ERC20 error strings given convention
-rw-r--r--packages/contracts/src/contracts/current/tokens/ERC20Token/ERC20Token.sol5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/contracts/src/contracts/current/tokens/ERC20Token/ERC20Token.sol b/packages/contracts/src/contracts/current/tokens/ERC20Token/ERC20Token.sol
index f0bcdafef..b6961a6ec 100644
--- a/packages/contracts/src/contracts/current/tokens/ERC20Token/ERC20Token.sol
+++ b/packages/contracts/src/contracts/current/tokens/ERC20Token/ERC20Token.sol
@@ -23,8 +23,8 @@ import "./IERC20Token.sol";
contract ERC20Token is IERC20Token {
- string constant INSUFFICIENT_BALANCE = "Insufficient balance to complete transfer.";
- string constant INSUFFICIENT_ALLOWANCE = "Insufficient allowance to complete transfer.";
+ string constant INSUFFICIENT_BALANCE = "ERC20_INSUFFICIENT_BALANCE";
+ string constant INSUFFICIENT_ALLOWANCE = "ERC20_INSUFFICIENT_ALLOWANCE";
string constant OVERFLOW = "Transfer would result in an overflow.";
mapping (address => uint256) balances;
@@ -97,4 +97,3 @@ contract ERC20Token is IERC20Token {
return allowed[_owner][_spender];
}
}
-