aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-25 02:34:19 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-25 04:48:51 +0800
commit5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5 (patch)
treeef1c35d332d62d394465ca37616b4939e9af789c /src/contract_wrappers/token_wrapper.ts
parenta2d579b201b9e06ede1bff0aaf7536266c145963 (diff)
downloaddexon-0x-contracts-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.gz
dexon-0x-contracts-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.tar.zst
dexon-0x-contracts-5a3a8ae7d5867a0304fbb1368dc1f2d018e14ac5.zip
Refactor UNLIMITED_ALLOWANCE_IN_BASE_UNITS to constants
Diffstat (limited to 'src/contract_wrappers/token_wrapper.ts')
-rw-r--r--src/contract_wrappers/token_wrapper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts
index 472ff909a..0c89d4e9b 100644
--- a/src/contract_wrappers/token_wrapper.ts
+++ b/src/contract_wrappers/token_wrapper.ts
@@ -29,7 +29,7 @@ const ALLOWANCE_TO_ZERO_GAS_AMOUNT = 47155;
* to the 0x Proxy smart contract.
*/
export class TokenWrapper extends ContractWrapper {
- public UNLIMITED_ALLOWANCE_IN_BASE_UNITS = new BigNumber(2).pow(256).minus(1);
+ public UNLIMITED_ALLOWANCE_IN_BASE_UNITS = constants.UNLIMITED_ALLOWANCE_IN_BASE_UNITS;
private _tokenContractsByAddress: {[address: string]: TokenContract};
private _tokenLogEventEmitters: ContractEventEmitter[];
constructor(web3Wrapper: Web3Wrapper) {