aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 01:19:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 01:19:22 +0800
commit9f89dbc8e4f3159e5fb80ea8d977911c404dd3bc (patch)
treebde30c03faf91a4385cfa1393a143c2281ee97b1
parentb1667cdd89417f834582cb265f3b631cb57d1f1e (diff)
downloaddexon-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.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/0x.ts b/src/0x.ts
index bef12fe7f..95935c258 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -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;
- }
}