diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-07 01:19:22 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-07 01:19:22 +0800 |
commit | 9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc (patch) | |
tree | bde30c03faf91a4385cfa1393a143c2281ee97b1 | |
parent | b1667cdd89417f834582cb265f3b631cb57d1f1e (diff) | |
download | dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar.gz dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar.bz2 dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar.lz dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar.xz dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.tar.zst dexon-sol-tools-9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc.zip |
Inline _isExchangeContractAddressProxyAuthorizedAsync
-rw-r--r-- | src/0x.ts | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -286,15 +286,11 @@ export class ZeroEx { const exchangeContractAddresses = await this.getAvailableExchangeContractAddressesAsync(); const proxyAuthorizedExchangeContractAddresses = []; for (const exchangeContractAddress of exchangeContractAddresses) { - const isAuthorized = await this._isExchangeContractAddressProxyAuthorizedAsync(exchangeContractAddress); + const isAuthorized = await this.proxy.isAuthorizedAsync(exchangeContractAddress); if (isAuthorized) { proxyAuthorizedExchangeContractAddresses.push(exchangeContractAddress); } } return proxyAuthorizedExchangeContractAddresses; } - private async _isExchangeContractAddressProxyAuthorizedAsync(exchangeContractAddress: string): Promise<boolean> { - const isAuthorized = await this.proxy.isAuthorizedAsync(exchangeContractAddress); - return isAuthorized; - } } |