From 7cedeb0be98e90f17fe53893ce6568cc82759956 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 30 Jun 2017 14:19:54 -0700 Subject: Fix naming --- src/contract_wrappers/exchange_wrapper.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/contract_wrappers/exchange_wrapper.ts') diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 8dc048648..a021d0e14 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -833,9 +833,10 @@ export class ExchangeWrapper extends ContractWrapper { private _getExchangeArtifactsByAddressOrThrow(exchangeContractAddress: string): ContractArtifact { const exchangeArtifacts = _.values(ExchangeArtifactsByName); for (const exchangeArtifact of exchangeArtifacts) { + const networkSpecificExchangeArtifactValues = _.values(exchangeArtifact.networks); const exchangeAddressesInArtifact = _.map( - _.values(exchangeArtifact.networks), - artifactsByNetwork => artifactsByNetwork.address, + networkSpecificExchangeArtifactValues, + networkSpecificExchangeArtifact => networkSpecificExchangeArtifact.address, ); if (_.includes(exchangeAddressesInArtifact, exchangeContractAddress)) { return exchangeArtifact; -- cgit v1.2.3