aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 02:05:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 02:05:56 +0800
commit3f7bdfa67a06fb62fac78a78da606738c64af666 (patch)
treef3de35b1d321e553d9d41d1dfe2c57037369d784 /src
parent260def1aefc65fd1b5ae19c86f9c361c795630ed (diff)
downloaddexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.gz
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.bz2
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.lz
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.xz
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.tar.zst
dexon-sol-tools-3f7bdfa67a06fb62fac78a78da606738c64af666.zip
Factor out exchangeArtifacts variable
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts3
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,