From 3f7bdfa67a06fb62fac78a78da606738c64af666 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 29 Jun 2017 11:05:56 -0700 Subject: Factor out exchangeArtifacts variable --- src/contract_wrappers/exchange_wrapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/contract_wrappers') diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a121d524c..08a145b0e 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -807,7 +807,8 @@ export class ExchangeWrapper extends ContractWrapper { return this._exchangeContractByAddress[exchangeContractAddress]; } private _getExchangeArtifactsByAddressOrThrow(exchangeContractAddress: string): ContractArtifact { - for (const exchangeArtifact of _.values(ExchangeArtifactsByName)) { + const exchangeArtifacts = _.values(ExchangeArtifactsByName); + for (const exchangeArtifact of exchangeArtifacts) { const exchangeAddressesInAftifact = _.map( _.values(exchangeArtifact.networks), artifactsByNetwork => artifactsByNetwork.address, -- cgit