Store the instantiated OrderValidationUtils

This commit is contained in:
Fabio Berger
2018-06-11 22:13:36 +02:00
parent 31fe232bac
commit 0a2694811d

View File

@@ -962,8 +962,8 @@ export class ExchangeWrapper extends ContractWrapper {
return this._orderValidationUtilsIfExists;
}
const exchangeContract = await this._getExchangeContractAsync();
const orderValidationUtils = new OrderValidationUtils(exchangeContract);
return orderValidationUtils;
this._orderValidationUtilsIfExists = new OrderValidationUtils(exchangeContract);
return this._orderValidationUtilsIfExists;
}
// tslint:enable:no-unused-variable
private async _getExchangeContractAsync(): Promise<ExchangeContract> {