aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 05:19:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 05:19:54 +0800
commit7cedeb0be98e90f17fe53893ce6568cc82759956 (patch)
treed08bedcf9cad3869bdb6c094b358bbe80aba4ba3 /src/contract_wrappers
parent43848f45ec73ef2b101a0eef09f9eb673a1c776a (diff)
downloaddexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar.gz
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar.bz2
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar.lz
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar.xz
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.tar.zst
dexon-sol-tools-7cedeb0be98e90f17fe53893ce6568cc82759956.zip
Fix naming
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts5
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;