aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-12 04:13:36 +0800
committerFabio Berger <me@fabioberger.com>2018-06-12 04:13:36 +0800
commit0a2694811dc680f53f9f390a379b84dbc1a39fc2 (patch)
tree7e9a193e898faa5286ed3cc82c96b762ab74aeb6 /packages
parent31fe232bac9c4e8a0ef409fb41188fcb8aa0b3f2 (diff)
downloaddexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.gz
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.bz2
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.lz
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.xz
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.zst
dexon-sol-tools-0a2694811dc680f53f9f390a379b84dbc1a39fc2.zip
Store the instantiated OrderValidationUtils
Diffstat (limited to 'packages')
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts
index 830b3b117..430ce9c5e 100644
--- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts
@@ -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> {