Fix _getProxyContractAsync function name

This commit is contained in:
Leonid Logvinov
2017-07-03 11:43:36 -07:00
parent b7705f0871
commit 649d55f0a2

View File

@@ -18,11 +18,11 @@ export class ProxyWrapper extends ContractWrapper {
* @return Whether the exchangeContractAddress is authorized. * @return Whether the exchangeContractAddress is authorized.
*/ */
public async isAuthorizedAsync(exchangeContractAddress: string): Promise<boolean> { public async isAuthorizedAsync(exchangeContractAddress: string): Promise<boolean> {
const proxyContractInstance = await this._getTokenRegistryContractAsync(); const proxyContractInstance = await this._getProxyContractAsync();
const isAuthorized = await proxyContractInstance.authorized.call(exchangeContractAddress); const isAuthorized = await proxyContractInstance.authorized.call(exchangeContractAddress);
return isAuthorized; return isAuthorized;
} }
private async _getTokenRegistryContractAsync(): Promise<ProxyContract> { private async _getProxyContractAsync(): Promise<ProxyContract> {
if (!_.isUndefined(this._proxyContractIfExists)) { if (!_.isUndefined(this._proxyContractIfExists)) {
return this._proxyContractIfExists; return this._proxyContractIfExists;
} }