diff options
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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<ContractArtifact>(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; |