diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-12 04:13:36 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-12 04:13:36 +0800 |
commit | 0a2694811dc680f53f9f390a379b84dbc1a39fc2 (patch) | |
tree | 7e9a193e898faa5286ed3cc82c96b762ab74aeb6 /packages/contract-wrappers | |
parent | 31fe232bac9c4e8a0ef409fb41188fcb8aa0b3f2 (diff) | |
download | dexon-0x-contracts-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.gz dexon-0x-contracts-0a2694811dc680f53f9f390a379b84dbc1a39fc2.tar.zst dexon-0x-contracts-0a2694811dc680f53f9f390a379b84dbc1a39fc2.zip |
Store the instantiated OrderValidationUtils
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts | 4 |
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> { |