diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a121d524c0..08a145b0e3 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,