Await ZRX call

This commit is contained in:
Leonid Logvinov
2017-07-03 12:00:43 -07:00
parent 287e9c7c85
commit 15bd31e629

View File

@@ -846,7 +846,7 @@ export class ExchangeWrapper extends ContractWrapper {
} }
private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> { private async _getZRXTokenAddressAsync(exchangeContractAddress: string): Promise<string> {
const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress); const exchangeInstance = await this._getExchangeContractAsync(exchangeContractAddress);
const ZRXtokenAddress = exchangeInstance.ZRX.call(); const ZRXtokenAddress = await exchangeInstance.ZRX.call();
return ZRXtokenAddress; return ZRXtokenAddress;
} }
} }