Await ZRX call
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user