diff options
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<ContractArtifact>(ExchangeArtifactsByName)) { + const exchangeArtifacts = _.values<ContractArtifact>(ExchangeArtifactsByName); + for (const exchangeArtifact of exchangeArtifacts) { const exchangeAddressesInAftifact = _.map( _.values(exchangeArtifact.networks), artifactsByNetwork => artifactsByNetwork.address, |