diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-19 20:56:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-19 20:56:41 +0800 |
commit | 0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b (patch) | |
tree | 912dd4f55444b03bafbb1fbbf76fc67966aeb95b /src/contract_wrappers | |
parent | f1cb3a4f37f0382ebf3c0ec37a44587cbedf4cad (diff) | |
download | dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar.gz dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar.bz2 dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar.lz dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar.xz dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.tar.zst dexon-sol-tools-0f942f95f0e8bed3db1bf0bc44b2b7f98c478d6b.zip |
Move lower-casing logic
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 3 | ||||
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 11a448680..54d7f62d5 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -753,6 +753,7 @@ export class ExchangeWrapper extends ContractWrapper { private async _getTokenTransferProxyAddressAsync(): Promise<string> { const exchangeInstance = await this._getExchangeContractAsync(); const tokenTransferProxyAddress = await exchangeInstance.TOKEN_TRANSFER_PROXY_CONTRACT.callAsync(); - return tokenTransferProxyAddress; + const tokenTransferProxyAddressLowerCase = tokenTransferProxyAddress.toLowerCase(); + return tokenTransferProxyAddressLowerCase; } } diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index 167815d73..f7f0a0ce3 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -303,7 +303,6 @@ export class TokenWrapper extends ContractWrapper { } private async _getTokenTransferProxyAddressAsync(): Promise<string> { const tokenTransferProxyContractAddress = await this._tokenTransferProxyContractAddressFetcher(); - const lowerCaseTokenTransferProxyContractAddress = tokenTransferProxyContractAddress.toLowerCase(); - return lowerCaseTokenTransferProxyContractAddress; + return tokenTransferProxyContractAddress; } } |