aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 05:15:49 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 05:15:49 +0800
commit43848f45ec73ef2b101a0eef09f9eb673a1c776a (patch)
tree6352f7303945456a30bffb56a0678be6bed5789a /src/contract_wrappers
parentfc3b0ce553574502fa23e63ec47e9500ba69283c (diff)
downloaddexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar.gz
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar.bz2
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar.lz
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar.xz
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.tar.zst
dexon-sol-tools-43848f45ec73ef2b101a0eef09f9eb673a1c776a.zip
Fix a typo in authorized
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index a276b53ad..8dc048648 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -632,8 +632,8 @@ export class ExchangeWrapper extends ContractWrapper {
const exchangeContractAddresses = await this.getAvailableContractAddressesAsync();
const proxyAuthorizedExchangeContractAddresses = [];
for (const exchangeContractAddress of exchangeContractAddresses) {
- const isProxyAuthorized = await this._isExchangeContractAddressProxyAuthrizedAsync(exchangeContractAddress);
- if (isProxyAuthorized) {
+ const isAuthorized = await this._isExchangeContractAddressProxyAuthorizedAsync(exchangeContractAddress);
+ if (isAuthorized) {
proxyAuthorizedExchangeContractAddresses.push(exchangeContractAddress);
}
}
@@ -648,7 +648,7 @@ export class ExchangeWrapper extends ContractWrapper {
await Promise.all(stopWatchingPromises);
this._exchangeLogEventEmitters = [];
}
- private async _isExchangeContractAddressProxyAuthrizedAsync(exchangeContractAddress: string): Promise<boolean> {
+ private async _isExchangeContractAddressProxyAuthorizedAsync(exchangeContractAddress: string): Promise<boolean> {
const isAuthorized = await this._proxyWrapper.isAuthorizedAsync(exchangeContractAddress);
return isAuthorized;
}